瀏覽代碼

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

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)
   }