Kaynağa Gözat

修改本地储存方式

liubei@c-top.com.cn 3 yıl önce
ebeveyn
işleme
0622e2cac5

+ 2 - 2
src/views/modules/stockWatch/modules/new-keepManage/account-newkeepManage.vue

@@ -568,8 +568,8 @@
             // }
         },
         mounted() {
-            if (localStorage.getItem('personalaccountId')) {
-                this.accountId = localStorage.getItem('personalaccountId')
+            if (sessionStorage.getItem('personalaccountId')) {
+                this.accountId = sessionStorage.getItem('personalaccountId')
             }
             this.showColumn();
             this.showIndex();

+ 2 - 2
src/views/modules/stockWatch/modules/new-keepManage/group-keepManage.vue

@@ -634,11 +634,11 @@
                 this.showColumn();
             },
             accountNameClick(row) {
-                localStorage.setItem("personalaccountId",row.accountId)
+                sessionStorage.setItem("personalaccountId",row.accountId)
                 this.$router.push({ path: '/modules/stockWatch/modules/new-keepManage/account-newkeepManage'})
             },
             userNameClick(row) {
-                localStorage.setItem("personalUserId",row.userId)
+                sessionStorage.setItem("personalUserId",row.userId)
                 this.$router.push({ path: '/modules/stockWatch/modules/new-keepManage/personal-keepManage' })
             },
             // 运营组数据

+ 2 - 2
src/views/modules/stockWatch/modules/new-keepManage/personal-keepManage.vue

@@ -310,8 +310,8 @@
             },
         },
         mounted() {
-            if (localStorage.getItem('personalUserId')) {
-                this.queryUserId = localStorage.getItem('personalUserId')
+            if (sessionStorage.getItem('personalUserId')) {
+                this.queryUserId = sessionStorage.getItem('personalUserId')
             }
             this.showColumn()
             this.getQueryNewlyData();