From 00c909e6f1e1767e69024620e99f71f98f2cf474 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Sat, 26 Oct 2024 22:20:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=A4=B4=E5=83=8F=E8=A7=84=E5=88=99=EF=BC=8C=E7=94=B1?= =?UTF-8?q?=E5=9F=BA=E4=BA=8E=E6=80=A7=E5=88=AB=E7=9A=84=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E8=B0=83=E6=95=B4=E4=B8=BA=E5=9F=BA=E4=BA=8E?= =?UTF-8?q?=E6=98=B5=E7=A7=B0=E5=B1=95=E7=A4=BA=EF=BC=88=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E5=9F=BA=E4=BA=8E=E6=98=B5=E7=A7=B0=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E9=9A=8F=E6=9C=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Avatar/index.vue | 82 +++++++++++++++++++ src/components/GiCell/GiCellAvatar.vue | 16 +++- .../components/HeaderRightBar/index.vue | 6 +- src/stores/modules/user.ts | 9 +- src/types/auto-imports.d.ts | 2 +- src/types/components.d.ts | 1 + .../workplace/components/Welcome.vue | 6 +- src/views/setting/profile/BasicInfo.vue | 5 +- src/views/system/user/index.vue | 21 +++-- 9 files changed, 117 insertions(+), 31 deletions(-) create mode 100644 src/components/Avatar/index.vue diff --git a/src/components/Avatar/index.vue b/src/components/Avatar/index.vue new file mode 100644 index 0000000..c8a337b --- /dev/null +++ b/src/components/Avatar/index.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/components/GiCell/GiCellAvatar.vue b/src/components/GiCell/GiCellAvatar.vue index 3b3724f..ca4ae6e 100644 --- a/src/components/GiCell/GiCellAvatar.vue +++ b/src/components/GiCell/GiCellAvatar.vue @@ -1,8 +1,6 @@ diff --git a/src/layout/components/HeaderRightBar/index.vue b/src/layout/components/HeaderRightBar/index.vue index 68d598a..c77c261 100644 --- a/src/layout/components/HeaderRightBar/index.vue +++ b/src/layout/components/HeaderRightBar/index.vue @@ -48,10 +48,8 @@ - - avatar - - {{ userStore.name }} + + {{ userStore.nickname }}