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`j(I%g^EXxXLH|H3ELDUhszUBQFVp4!keH
z9Okir_1J)o*o4j40!iD7Td)n=u>(ukiMZvB^5UjYEw5I~JL}wH<(|qWzgDTOUs%$u
zmp8Wgjjgq<3pK7
vY*uQQbmf&wjoVpYtg>;nT4i%hxTx8KZh32^th)fS_1lX(J9lqYR}lIi`?O|&
diff --git a/store/modules/user.js b/store/modules/user.js
index f9c1059..2285014 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -11,6 +11,8 @@ const user = {
state: {
token: getToken(),
name: storage.get(constant.name),
+ nickName: storage.get(constant.nickName),
+ sex: storage.get(constant.sex),
avatar: storage.get(constant.avatar),
roles: storage.get(constant.roles),
permissions: storage.get(constant.permissions),
@@ -24,6 +26,14 @@ const user = {
state.name = name;
storage.set(constant.name, name);
},
+ SET_SEX: (state, sex) => {
+ state.sex = sex;
+ storage.set(constant.sex, sex);
+ },
+ SET_NICKNAME: (state, nickName) => {
+ state.nickName = nickName;
+ storage.set(constant.nickName, nickName);
+ },
SET_AVATAR: (state, avatar) => {
state.avatar = avatar;
storage.set(constant.avatar, avatar);
@@ -128,7 +138,9 @@ const user = {
commit("SET_ROLES", ["ROLE_DEFAULT"]);
}
commit("SET_NAME", username);
+ commit("SET_NICKNAME", user.nickName);
commit("SET_AVATAR", avatar);
+ commit("SET_SEX", user.sex);
resolve(res);
})
.catch((error) => {