Browse Source

refactor(frontend): 移除登录成功后的页面刷新

- 注释掉了 login 组件中登录成功后使用 window.location.reload() 进行页面刷新的代码
-这个修改避免了不必要的页面刷新,可以提高用户体验
panqiuyao 3 months ago
parent
commit
378c72b7e4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frontend/src/components/login/index.vue

+ 2 - 2
frontend/src/components/login/index.vue

@@ -213,7 +213,7 @@ const handleLogin = async () => {
       await  useUserInfoStore.getInfo()
       useUserInfoStore.updateLoginShow(false)
       setTimeout(()=>{
-        window.location.reload()
+      //  window.location.reload()
       },100)
         break;
   }
@@ -253,7 +253,7 @@ async function toggleCompany() {
   await  useUserInfoStore.getInfo()
   useUserInfoStore.updateLoginShow(false)
   setTimeout(()=>{
-    window.location.reload()
+    // window.location.reload()
   },100)
 }