diff --git a/src/router/index.js b/src/router/index.js index 52083762a..2702594d8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -982,6 +982,7 @@ router.beforeEach((to, from, next) => { }); return next({ name: "login", + query: { redirect: to.fullPath } }); } window.SITE_CONFIG["menuShujuList"] = res.data; @@ -1012,6 +1013,7 @@ router.beforeEach((to, from, next) => { }); return next({ name: "login", + query: { redirect: to.fullPath } }); } window.SITE_CONFIG["menuList"] = res.data @@ -1029,6 +1031,7 @@ router.beforeEach((to, from, next) => { console.log(err); next({ name: "login", + query: { redirect: to.fullPath } }); }); });