|
@@ -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(() => {
|