祖安之光
2 天以前 852721f1df552462162e87d0dc7ade477bf06ea3
src/views/homePage.vue
@@ -146,7 +146,7 @@
        identity: loginForm.value.role
      }
      userStore.login(param).then(() => {
        if (redirect.value) {
        if (redirect.value && redirect.value !== '/index') {
          const query = route.query;
          const otherQueryParams = Object.keys(query).reduce((acc, cur) => {
            if (cur !== "redirect") {
@@ -154,7 +154,7 @@
            }
            return acc;
          }, {});
          router.push({ path: redirect.value || "/menuPage", query: otherQueryParams });
          router.push({ path: redirect.value, query: otherQueryParams });
        } else {
          router.push({ path: "/menuPage" });
        }