feat:完善用户表单页面对接

This commit is contained in:
chenchun
2024-08-30 17:36:33 +08:00
parent 60ef93b510
commit 6e9dd669ba
11 changed files with 69 additions and 76 deletions

View File

@@ -90,11 +90,10 @@ export const useUserStore = defineStore({
};
setToken(storeData);
getUserInfo().then(resInfo => {
storeData.username = resInfo.data.username;
storeData.avatar = resInfo.data.avatar;
storeData.nickname = resInfo.data.nick;
storeData.roles = resInfo.data.roles;
storeData.accessToken = resInfo.data.accessToken;
storeData.username = resInfo.data.user.userName;
storeData.avatar = resInfo.data.user.icon;
storeData.nickname = resInfo.data.user.nick;
storeData.roles = resInfo.data.roleCodes;
setToken(storeData);
resolve(resInfo);
});