소스 검색

自测修复

刘洋 2 년 전
부모
커밋
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') &&