1
0
tangning 8 ماه پیش
والد
کامیت
dcec4a0b66
2فایلهای تغییر یافته به همراه4 افزوده شده و 5 حذف شده
  1. 1 1
      src/store/user.ts
  2. 3 4
      src/view/layout/index.vue

+ 1 - 1
src/store/user.ts

@@ -50,7 +50,7 @@ export const getUsers = async (deptId?: string) =>
 // 当前用户的信息
 
 export const user = ref({
-  token: getLocal(`token`, "") || 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOjEsImRldmljZSI6ImRlZmF1bHQtZGV2aWNlIiwiZWZmIjotMSwicm5TdHIiOiI3WFZWVmgzdUVkTmlYSjRyS0czelB4VlRxd3Z6UFVoUSIsImlkIjoxLCJ1c2VySWQiOjgxNywiaXNBZG1pbiI6MSwicGxhdGZvcm1JZCI6MSwidXNlck5hbWUiOiJzdXBlci1hZG1pbiIsIm5pY2tOYW1lIjoi6LaF57qn566h55CG5ZGYIn0.Tw3XhFoUH-4og9FUHhvY0pz3sI-9GB06TfkUOunnl4g',
+  token: getLocal(`token`, ""),
   info: getLocal("info", {} as UserInfo),
 });
 

+ 3 - 4
src/view/layout/index.vue

@@ -20,8 +20,8 @@
             >
             <!-- @load="setupSDK($event.target)" -->
               <iframe
-                v-if="sceneURL"
-                :src="sceneURL"
+                v-if="caseId"
+                :src="`/code/index.html?caseId=${caseId}#/show`"
                 frameborder="0"
                 :style="{ width: '100%', height: '100%' }"
               ></iframe>
@@ -46,8 +46,7 @@ import { computed, ref } from "vue";
 import { menuRouteNames } from "@/app";
 import { updateByTreeFileLists } from "@/store/case";
 console.log(menuRouteNames, 'menuRouteNames', router.currentRoute.value.name);
-const sceneURL = ref('https://test.4dkankan.com/spg.html?m=KK-t-iN6cFCdwibf')
-
+const sceneURL = ref('/code/index.html?caseId=360#/show')
 const isSystem = computed(() => routeIsSystem());
 updateByTreeFileLists()
 const hiddenSlide = computed(