Explorar el Código

🐛 fix(Login): 修复登录之后全局接口不会重新请求的bug

晓晓晓晓丶vv hace 4 años
padre
commit
54c6ba0060
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/Login.vue

+ 1 - 1
src/views/Login.vue

@@ -74,7 +74,7 @@ const Login = defineComponent({
       data.loading = true;
       await store.dispatch(ActionType.doLogin, data.forms);
       data.loading = false;
-      router.replace("/");
+      location.reload();
     };
 
     return { ...toRefs(data), onLogin };