libushang 3 tygodni temu
rodzic
commit
8c734046d3
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/permission.ts

+ 2 - 0
src/permission.ts

@@ -68,6 +68,7 @@ router.beforeEach(async (to, from, next) => {
         next(`/mplogin?redirect=${redirect}`); // 否则全部重定向到登录页
         NProgress.done();
       }
+      /*
       else if (/(wxworklocal)/i.test(navigator.userAgent)) {
         let state_json = {
           "redirect_url": to.fullPath || '/',
@@ -78,6 +79,7 @@ router.beforeEach(async (to, from, next) => {
         let next_url = `https://open.weixin.qq.com/connect/Oauth2/authorize?appid=wld341060039&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&agentid=1004302&state=${state}#wechat_redirect`;
         window.location.href = next_url; // 粤政易自动登录
       }
+      */
       else {
         const redirect = encodeURIComponent(to.fullPath || '/');
         next(`/login?redirect=${redirect}`); // 否则全部重定向到登录页