diff --git a/src/api/system/user/types.ts b/src/api/system/user/types.ts index 92f1066..1bea33f 100644 --- a/src/api/system/user/types.ts +++ b/src/api/system/user/types.ts @@ -34,6 +34,7 @@ export interface UserVO extends BaseEntity { phonenumber: string; gender: string; avatar: string; + url: string; status: string; delFlag: string; loginIp: string; diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 4122294..4a23d32 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -36,7 +36,7 @@ export const useUserStore = defineStore('user', () => { if (res) { const data = res.data; const user = data.user; - const profile = user.avatar == '' || user.avatar == null ? defAva : user.avatar; + const profile = user.url == '' || user.url == null ? defAva : user.url; if (data.roles && data.roles.length > 0) { // 验证返回的roles是否是一个非空数组