소스 검색

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

cxmo 1 년 전
부모
커밋
c8ca7573d9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)
   }