1
0
tangning 7 mēneši atpakaļ
vecāks
revīzija
36e987493f
2 mainītis faili ar 5 papildinājumiem un 14 dzēšanām
  1. 1 1
      src/store/case.ts
  2. 4 13
      src/view/layout/index.vue

+ 1 - 1
src/store/case.ts

@@ -291,7 +291,7 @@ export const getUrlSrc = (item, caseId) => {
     5: `/mega/index.html?m=${item.num}`,
     6: `/spg.html?m=${item.num}`,
     7: `/spg.html?m=${item.num}`,
-    99: `/code/index.html?caseId=${caseId}#/show`,
+    99: `/code/index.html?caseId=${caseId}&single#/show`,
   };
   return SceneType[item.type];
 }

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

@@ -18,7 +18,7 @@
                 // display: showScene ? 'none' : 'block'
               }"
             >
-            <div class="poprs sceneList" v-if="sceneList.length">
+            <!-- <div class="poprs sceneList" v-if="sceneList.length">
               <el-dropdown placement="bottom" style="width: 100%" trigger="click" @command="handleCommand">
                 <el-button >
                   <div style="width: 200px;" class="truncate" :title="sceneListName">
@@ -26,22 +26,13 @@
                   </div>
                   <el-icon class="el-icon--right"><arrow-down /></el-icon>
                 </el-button>
-                <!-- <span class="el-dropdown-link" style="color: #fff">
-                  {{sceneListName}}
-                  <el-icon class="el-icon--right">
-                    <arrow-down />
-                  </el-icon>
-                </span> -->
               <template #dropdown>
                 <el-dropdown-menu>
                   <el-dropdown-item class="truncate" style="max-width: 400px;" v-for="item,index in sceneList" :key="index" :command="item.id">{{ item.name || '多元融合' }}</el-dropdown-item>
                 </el-dropdown-menu>
               </template>
             </el-dropdown>
-              <!-- <div v-for="item,index in sceneList" :key="index">
-                {{ item.name }}
-              </div> -->
-            </div>
+            </div> -->
             <!-- @load="setupSDK($event.target)" -->
               <iframe
                 v-if="caseId"
@@ -80,7 +71,7 @@ const caseId = computed(() => {
 });
 // const qpisceneList = ref(getCaseSceneListData() as any[]);
 const sceneList = ref([]);
-const sceneURL = ref(``)
+const sceneURL = ref(`/code/index.html?caseId=${caseId.value}#/show`)
 const sceneListName = ref('')
 const modeList = ref([])
 const init = async () => {
@@ -97,7 +88,7 @@ const init = async () => {
   // let url = getUrlSrc({ id: 0 }, caseId.value)
   // sceneURL.value = url;
 }
-init()
+// init()
 const qpisceneList = computed(() => getCaseSceneListData(caseId.value as number));
 watch(() => qpisceneList.value, () => {
   if(!qpisceneList.value instanceof Array){