Ver código fonte

宅基地手机端超时页面跳转问题

rongxin_prod
Xyq123* 1 ano atrás
pai
commit
2116f27ba6
1 arquivos alterados com 31 adições e 31 exclusões
  1. +31
    -31
      src/permission.js

+ 31
- 31
src/permission.js Ver arquivo

@@ -211,37 +211,37 @@ router.beforeEach((to, from, next) => {
// })
next()
}).catch(err => {
store.dispatch('LogOut').then(() => {
try {
let loginUrl = Cookies.get("_Login_url");
if (loginUrl && loginUrl.indexOf("onlineHomeLogin") !== -1) {
next({ path: '/onlineHomeLogin' })
return;
}
} catch (e) { console.log(e); }
// Message.error(err)
if ('/authenticRight'.indexOf(to.path) !== -1) {
next({ path: '/authenticRight/login' })
} else if ('/homestead'.indexOf(to.path) !== -1) {
next({ path: '/homestead/login' })
} else if (to.path.indexOf('/onlineHome') !== -1) {
//next(`/onlineHomeLogin`)
next(`/zjdLogin`)
} else if (to.path.indexOf('/yinnong') !== -1) {
next(`/yinnongLogin`)
} else if (window.location.href.indexOf('/sunVillage_info/') != -1) {
window.location.href = '/sunVillage_info/login';
} else if (to.path.indexOf('/homesteadSurvey') !== -1) {
next(`/homesteadLogin`)
} else if (to.path.indexOf('/lawEnforcement') !== -1) {
next(`/lawEnforcement/login`)
} else if (to.path.indexOf('/sunVillage') !== -1) {
next(`/sunVillage/login`)
} else {
next(`/yinnongLogin`)
//next({ path: '/' })
}
})
// store.dispatch('LogOut').then(() => {
// try {
// let loginUrl = Cookies.get("_Login_url");
// if (loginUrl && loginUrl.indexOf("onlineHomeLogin") !== -1) {
// next({ path: '/onlineHomeLogin' })
// return;
// }
// } catch (e) { console.log(e); }
// // Message.error(err)
// if ('/authenticRight'.indexOf(to.path) !== -1) {
// next({ path: '/authenticRight/login' })
// } else if ('/homestead'.indexOf(to.path) !== -1) {
// next({ path: '/homestead/login' })
// } else if (to.path.indexOf('/onlineHome') !== -1) {
// //next(`/onlineHomeLogin`)
// next(`/zjdLogin`)
// } else if (to.path.indexOf('/yinnong') !== -1) {
// next(`/yinnongLogin`)
// } else if (window.location.href.indexOf('/sunVillage_info/') != -1) {
// window.location.href = '/sunVillage_info/login';
// } else if (to.path.indexOf('/homesteadSurvey') !== -1) {
// next(`/homesteadLogin`)
// } else if (to.path.indexOf('/lawEnforcement') !== -1) {
// next(`/lawEnforcement/login`)
// } else if (to.path.indexOf('/sunVillage') !== -1) {
// next(`/sunVillage/login`)
// } else {
// next(`/yinnongLogin`)
// //next({ path: '/' })
// }
// })
})
} else {
next()


Carregando…
Cancelar
Salvar