bihuisong 1 年間 前
コミット
a87611431c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      zhsq_qk-ui/src/permission.js

+ 1 - 1
zhsq_qk-ui/src/permission.js

@@ -48,7 +48,7 @@ router.beforeEach((to, from, next) => {
       next()
       next()
     } else {
     } else {
       // next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
       // next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
-      next(`/sso-login`) // 否则全部重定向到单点登录的登录页,而不是再进入原来的登录页
+      next(`/sso-login?back=` +  location.href) // 否则全部重定向到单点登录的登录页,而不是再进入原来的登录页
       NProgress.done()
       NProgress.done()
     }
     }
   }
   }