mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
[Client] Fix #3396
This commit is contained in:
parent
3bebf7fba1
commit
d3ddf1f787
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