mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 22:03:04 +00:00
[Client] Fix #3396
This commit is contained in:
parent
98a2953c9c
commit
121dd86299
1 changed files with 10 additions and 2 deletions
|
@ -8,11 +8,11 @@
|
|||
<div class="banner"
|
||||
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl})` : ''"
|
||||
:title="$t('update-banner')"
|
||||
@click="() => os.apis.updateBanner()"
|
||||
@click="updateBanner()"
|
||||
></div>
|
||||
<mk-avatar class="avatar" :user="$store.state.i"
|
||||
:disable-link="true"
|
||||
@click="() => os.apis.updateAvatar()"
|
||||
@click="updateAvatar()"
|
||||
:title="$t('update-avatar')"
|
||||
/>
|
||||
<router-link class="name" :to="$store.state.i | userPage"><mk-user-name :user="$store.state.i"/></router-link>
|
||||
|
@ -25,6 +25,8 @@
|
|||
<script lang="ts">
|
||||
import define from '../../../common/define-widget';
|
||||
import i18n from '../../../i18n';
|
||||
import updateAvatar from '../../api/update-avatar';
|
||||
import updateBanner from '../../api/update-banner';
|
||||
|
||||
export default define({
|
||||
name: 'profile',
|
||||
|
@ -41,6 +43,12 @@ export default define({
|
|||
this.props.design++;
|
||||
}
|
||||
this.save();
|
||||
},
|
||||
updateAvatar() {
|
||||
updateAvatar(this.$root)();
|
||||
},
|
||||
updateBanner() {
|
||||
updateBanner(this.$root)();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue