Przeglądaj źródła

修改待办跳转问题

guoqing 1 rok temu
rodzic
commit
36387259ca

+ 3 - 1
src/views/placeManage/placeRegister/placeRegisterList.vue

@@ -252,12 +252,14 @@ export default {
               text: item.name,
               value: item.code,
             });
-            item.children.forEach((item1) => {
+            if(item.children){
+              item.children.forEach((item1) => {
               option1.value.push({
                 text: item1.name,
                 value: item1.code,
               });
             });
+            }
           }
         });
       });

+ 3 - 0
src/views/toBeDone/toBeDone.vue

@@ -163,8 +163,10 @@ export default {
     // 导航栏颜色
     const selectColor = ref(window.localStorage.getItem("MZ_COLOR"));
     //数据接收
+    const active = ref(0)
     onMounted(() => {
       var item = JSON.parse(router.currentRoute.value.query.name);
+      console.log();
       if (item == 1) {
         active.value = 1;
       }
@@ -191,6 +193,7 @@ export default {
       finished,
       loading2,
       finished2,
+      active
     };
   },
 };