feat: There is no way the, 不支持手机操作 跳入phoneHome 固定逻辑操作
This commit is contained in:
+20
-2
@@ -212,7 +212,16 @@ router.beforeEach(function (to, from, next) {
|
|||||||
next()
|
next()
|
||||||
}else if (toName.slice(0,5) !== 'phone') {
|
}else if (toName.slice(0,5) !== 'phone') {
|
||||||
if(toName === 'LoginVerify'){
|
if(toName === 'LoginVerify'){
|
||||||
next('/blankPage')
|
if(toName === 'phoneHome'){
|
||||||
|
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
|
||||||
|
localStorage.removeItem('token')
|
||||||
|
token = localStorage.getItem("token")
|
||||||
|
window.sessionStorage.clear()
|
||||||
|
localStorage.setItem("routerName","phoneHome")
|
||||||
|
next('/loginVerifyPhone')
|
||||||
|
}else{
|
||||||
|
next('/blankPage')
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
if(toName === 'blankPage' || toName === 'processedPage') {
|
if(toName === 'blankPage' || toName === 'processedPage') {
|
||||||
next()
|
next()
|
||||||
@@ -223,7 +232,16 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}else {
|
}else {
|
||||||
if(toName !== 'blankPage'){
|
if(toName !== 'blankPage'){
|
||||||
if(to.matched.length === 0){
|
if(to.matched.length === 0){
|
||||||
next('/blankPage')
|
if(toName === 'phoneHome'){
|
||||||
|
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
|
||||||
|
localStorage.removeItem('token')
|
||||||
|
token = localStorage.getItem("token")
|
||||||
|
window.sessionStorage.clear()
|
||||||
|
localStorage.setItem("routerName","phoneHome")
|
||||||
|
next('/loginVerifyPhone')
|
||||||
|
}else{
|
||||||
|
next('/blankPage')
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user