修改
This commit is contained in:
@@ -13,6 +13,10 @@ function onSaveNickname(name: string): void {
|
||||
void profileStore.saveNickname(name)
|
||||
}
|
||||
|
||||
function onSaveAvatar(url: string): void {
|
||||
void profileStore.saveAvatar(url)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
void profileStore.fetchProfile()
|
||||
})
|
||||
@@ -23,7 +27,11 @@ onMounted(() => {
|
||||
<div class="profile__container container">
|
||||
<div class="profile__body">
|
||||
<aside class="profile__aside">
|
||||
<ProfileUserCard :profile="profile" @save-nickname="onSaveNickname" />
|
||||
<ProfileUserCard
|
||||
:profile="profile"
|
||||
@save-nickname="onSaveNickname"
|
||||
@save-avatar="onSaveAvatar"
|
||||
/>
|
||||
<ProfileSider />
|
||||
</aside>
|
||||
<main class="profile__main">
|
||||
|
||||
Reference in New Issue
Block a user