zhaoke 2 gadi atpakaļ
vecāks
revīzija
14ded2b012
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/views/login/Login.vue

+ 2 - 1
src/views/login/Login.vue

@@ -153,7 +153,8 @@ let loginReq = () => {
     .then(() => {
       ElMessage({ message: "登录成功", type: "success" });
       sessionStorage.setItem("userName", params.username);
-      router.push({ path: state.redirect || "/", query: state.otherQuery });
+      // router.push({ path: state.redirect || "/", query: state.otherQuery });
+      router.push({ path: "/", query: state.otherQuery });
     })
     .catch((res) => {
       console.log(res);