src/views/homePage.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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" }); }