From 52c423f6b7095d8b2de2de254d331575e585c566 Mon Sep 17 00:00:00 2001 From: dataprince Date: Mon, 29 Jan 2024 20:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A4=B4=E5=83=8F=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/types.ts | 1 + src/store/modules/user.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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是否是一个非空数组