zhouwenxuan
2023-12-06 c1b2db87bab550a24c5a7fd5899342d56e7f414a
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))
          }