src/views/components/loginForm.vue
@@ -107,7 +107,7 @@ }) const openRegist = ()=>{ regRef.value.dialogVisible = true regRef.value.openDialog('add', {}); } watch(route, (newRoute) => { @@ -142,7 +142,7 @@ // return acc; // }, {}); const userInfo = JSON.parse(Cookies.get('userInfo')) if(userInfo.identity === 0) { if(userInfo.identity === 0 || userInfo.identity === 1 ) { sidebarRouters.value = menu.adminMenu Cookies.set('routers',JSON.stringify(sidebarRouters.value)) }