Browse Source

游客登录完跳转至之前的页面

cxmo 1 year ago
parent
commit
c8ca7573d9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/router/index.js

+ 1 - 0
src/router/index.js

@@ -105,6 +105,7 @@ router.beforeEach((to, from, next) => {
     next({path:'/login',replace:true})
     return 
   } */
+  if(shouldRedireact.includes(to.path)) sessionStorage.setItem('login_redirect',to.fullPath)
   if(to.query.ShareEmail){
     sessionStorage.setItem('shareId',to.query.ShareEmail)
   }