From 2269640d26a7a9b21a3828c75fb5aaa56ccfd6f8 Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期三, 02 十一月 2022 09:26:40 +0800 Subject: [PATCH] 修改问题 --- src/store/modules/user.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 23d175b..ab7a6bf 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -30,6 +30,9 @@ const user = { state: { + id: getStore({ + name: 'id' + }), userInfo: getStore({ name: 'userInfo' }) || {}, @@ -198,6 +201,14 @@ } }, mutations: { + SET_ID: (state, id) => { + state.id = id + setStore({ + name:'id', + content: state.id, + type: 'session' + }) + }, SET_ACCESS_TOKEN: (state, access_token) => { state.access_token = access_token setStore({ -- Gitblit v1.9.1