Pārlūkot izejas kodu

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

cxmo 1 gadu atpakaļ
vecāks
revīzija
c8ca7573d9
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)
   }