刘洋 2 жил өмнө
parent
commit
97b9c4acb8
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/router/index.ts

+ 3 - 0
src/router/index.ts

@@ -36,6 +36,9 @@ const router = createRouter({
 
 router.beforeEach(async (to, from, next) => {
   const mainStore = useMainStore()
+  if (to.name === 'Login') {
+    mainStore.setLockScreen(false)
+  }
   if (
     !mainStore.myUserInfo &&
     sessionStorage.get('LOGIN_RESULT') &&