feat: There is no way the,iphone config

This commit is contained in:
super_liu
2021-12-23 08:08:21 +08:00
parent 83b6771d36
commit c52fdb5c0f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ router.beforeEach(function (to, from, next) {
}else { }else {
if ((token === null || token === '' ) && toName !== 'Login') { if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){ if(toName !== 'phoneIndex'){
sessionStorage.removeItem("param"); localStorage.removeItem("param");
sessionStorage.setItem('param',JSON.stringify(param4)) localStorage.setItem('param',JSON.stringify(param4))
next('/phoneIndex') next('/phoneIndex')
}else { }else {
next() next()
@@ -74,7 +74,7 @@ export default {
watch: { watch: {
}, },
mounted() { mounted() {
this.phoneInfo = JSON.parse(sessionStorage.getItem("param")) this.phoneInfo = JSON.parse(localStorage.getItem("param"))
let pId = this.phoneInfo.prcId let pId = this.phoneInfo.prcId
let taskIds = this.phoneInfo.taskId let taskIds = this.phoneInfo.taskId
this.loginMobile(pId,taskIds) this.loginMobile(pId,taskIds)