liuqiao 2 éve
szülő
commit
8b8e5a2821
1 módosított fájl, 5 hozzáadás és 6 törlés
  1. 5 6
      src/permission.js

+ 5 - 6
src/permission.js

@@ -38,12 +38,11 @@ router.beforeEach(async (to, from, next) => {
         type: 'warning'
       })
          .then(() => {
-          this.$router.replace(`/indexLayout/home?type=reLogin`)
-         // next(`/indexLayout/index'?type=reLogin`) 
-          console.log(next(`/login?redirect=${to.path}`) );
-          // next(`/login/index?redirect=${to.path}`) // 在没有访问权限的其他页面将重定向到登录页
-          // const errUril = window.location.protocol+"//"+window.location.host+"/"+this.$store.getters.logUrl
-          // window.location.href=errUril
+         next(`/indexLayout/index'?type=reLogin`) 
+         // next(`/login/index?redirect=${to.path}`) // 在没有访问权限的其他页面将重定向到登录页
+           //const errUril = window.location.protocol+"//"+window.location.host+"/"+this.$store.getters.logUrl
+           //console.log(errUril);
+       //   window.location.href=errUril
           NProgress.done() // 关闭进度条
         })
         .catch(() => {