From c52fdb5c0f92cb54184cadb669605d60e7b93839 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Thu, 23 Dec 2021 08:08:21 +0800 Subject: [PATCH] feat: There is no way the,iphone config --- src/main.js | 4 ++-- src/pages/processCenter/pages/phone/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 36c397c45..569a45775 100644 --- a/src/main.js +++ b/src/main.js @@ -113,8 +113,8 @@ router.beforeEach(function (to, from, next) { }else { if ((token === null || token === '' ) && toName !== 'Login') { if(toName !== 'phoneIndex'){ - sessionStorage.removeItem("param"); - sessionStorage.setItem('param',JSON.stringify(param4)) + localStorage.removeItem("param"); + localStorage.setItem('param',JSON.stringify(param4)) next('/phoneIndex') }else { next() diff --git a/src/pages/processCenter/pages/phone/index.vue b/src/pages/processCenter/pages/phone/index.vue index fea9edc89..6979de337 100644 --- a/src/pages/processCenter/pages/phone/index.vue +++ b/src/pages/processCenter/pages/phone/index.vue @@ -74,7 +74,7 @@ export default { watch: { }, mounted() { - this.phoneInfo = JSON.parse(sessionStorage.getItem("param")) + this.phoneInfo = JSON.parse(localStorage.getItem("param")) let pId = this.phoneInfo.prcId let taskIds = this.phoneInfo.taskId this.loginMobile(pId,taskIds)