From c639b8113311b375ef76787f014d34f7601b5d10 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Mon, 16 Oct 2023 01:22:32 +0800 Subject: [PATCH] feat: upload avatar!!! --- src/api/user/types/user.ts | 1 + src/components/top-bar/KUNGalgameTopBar.vue | 18 ++++++++---------- src/store/modules/kungalgamer.ts | 2 ++ src/store/types/kungalgamer.d.ts | 1 + src/views/kungalgamer/KUNGalgamer.vue | 2 +- src/views/kungalgamer/components/Avatar.vue | 18 +++++++++++++++++- src/views/kungalgamer/components/Header.vue | 14 +++++++++++--- 7 files changed, 41 insertions(+), 15 deletions(-) diff --git a/src/api/user/types/user.ts b/src/api/user/types/user.ts index ca797eae..bb135ce0 100644 --- a/src/api/user/types/user.ts +++ b/src/api/user/types/user.ts @@ -94,6 +94,7 @@ export type UserInfoResponseData = KUNGalgameResponseData export type UserUpdateAvatarResponseData = KUNGalgameResponseData<{ avatar: string + avatarMin: string }> export type UserUpdateBioResponseData = KUNGalgameResponseData<{}> diff --git a/src/components/top-bar/KUNGalgameTopBar.vue b/src/components/top-bar/KUNGalgameTopBar.vue index c9408641..8d2e01d6 100644 --- a/src/components/top-bar/KUNGalgameTopBar.vue +++ b/src/components/top-bar/KUNGalgameTopBar.vue @@ -1,26 +1,24 @@ diff --git a/src/views/kungalgamer/components/Header.vue b/src/views/kungalgamer/components/Header.vue index 89a78652..90804c1a 100644 --- a/src/views/kungalgamer/components/Header.vue +++ b/src/views/kungalgamer/components/Header.vue @@ -1,8 +1,11 @@