tangning 7 maanden geleden
bovenliggende
commit
dace3830a6
1 gewijzigde bestanden met toevoegingen van 12 en 12 verwijderingen
  1. 12 12
      src/view/layout/index.vue

+ 12 - 12
src/view/layout/index.vue

@@ -90,18 +90,18 @@ const init = async () => {
 }
 // init()
 const qpisceneList = computed(() => getCaseSceneListData(caseId.value as number));
-watch(() => qpisceneList.value, () => {
-  if(!qpisceneList.value instanceof Array){
-    return;
-  }
-  let newqpisceneList = qpisceneList.value && JSON.parse(JSON.stringify(qpisceneList.value)) || []
-  if(newqpisceneList.length){
-    newqpisceneList.unshift({ id: -1, type: 99, name: '多元融合' });
-  }
-  console.log('qpisceneList', qpisceneList.value, newqpisceneList);
-  sceneList.value = qpisceneList.value && [...newqpisceneList] || []
-  handleCommand()
-})
+// watch(() => qpisceneList.value, () => {
+//   if(!qpisceneList.value instanceof Array){
+//     return;
+//   }
+//   let newqpisceneList = qpisceneList.value && JSON.parse(JSON.stringify(qpisceneList.value)) || []
+//   if(newqpisceneList.length){
+//     newqpisceneList.unshift({ id: -1, type: 99, name: '多元融合' });
+//   }
+//   console.log('qpisceneList', qpisceneList.value, newqpisceneList);
+//   sceneList.value = qpisceneList.value && [...newqpisceneList] || []
+//   handleCommand()
+// })
 console.log(sceneList, 'sceneList');
 onMounted(() => {
   // setupSDK(document.querySelector('iframe') as HTMLIFrameElement)