From 31181a5ed1e8cb393ad90fd19f6baea72b3cc423 Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123456 <zxx19900626> Date: 星期日, 24 四月 2022 11:43:06 +0800 Subject: [PATCH] 就业创业细节 --- src/store/modules/user.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 6d53c1a..342d66f 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -6,11 +6,13 @@ const user = { state: { - token: getStore('token') || {} + token: getStore('token') || '' }, mutations: { SET_TOKEN: (state, token) => { state.token = token + console.log(token,'token----set') + setStore('token',state.token) } }, actions: { -- Gitblit v1.9.1