@@ -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,
+ }
}
@@ -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
};
},