From dca74c76b85c5ece7b87beae9d9f921883b55564 Mon Sep 17 00:00:00 2001 From: zhangyanpeng <bob.zhang@highdatas.com> Date: 星期四, 07 五月 2020 14:45:39 +0800 Subject: [PATCH] 调整cookies --- src/views/list.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/list.vue b/src/views/list.vue index 3f83ec0..44937b2 100644 --- a/src/views/list.vue +++ b/src/views/list.vue @@ -190,8 +190,11 @@ }, mounted() { //缁勪欢閰嶇疆鍚庯紝椤甸潰鏄剧ず鍓嶃�傜敤浜庡姞杞芥暟鎹� this.getData(); - this.userId = localStorage.getItem('userId'); - this.assign = localStorage.getItem('assign'); + //this.userId = localStorage.getItem('userId'); + //this.assign = localStorage.getItem('assign'); + + this.userId = this.$cookies.get('userId'); + this.assign = this.$cookies.get('assign'); }, methods: { download() { -- Gitblit v1.8.0