forked from FoundKeyGang/FoundKey
[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"
|
<div class="banner"
|
||||||
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl})` : ''"
|
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl})` : ''"
|
||||||
:title="$t('update-banner')"
|
:title="$t('update-banner')"
|
||||||
@click="() => os.apis.updateBanner()"
|
@click="updateBanner()"
|
||||||
></div>
|
></div>
|
||||||
<mk-avatar class="avatar" :user="$store.state.i"
|
<mk-avatar class="avatar" :user="$store.state.i"
|
||||||
:disable-link="true"
|
:disable-link="true"
|
||||||
@click="() => os.apis.updateAvatar()"
|
@click="updateAvatar()"
|
||||||
:title="$t('update-avatar')"
|
:title="$t('update-avatar')"
|
||||||
/>
|
/>
|
||||||
<router-link class="name" :to="$store.state.i | userPage"><mk-user-name :user="$store.state.i"/></router-link>
|
<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">
|
<script lang="ts">
|
||||||
import define from '../../../common/define-widget';
|
import define from '../../../common/define-widget';
|
||||||
import i18n from '../../../i18n';
|
import i18n from '../../../i18n';
|
||||||
|
import updateAvatar from '../../api/update-avatar';
|
||||||
|
import updateBanner from '../../api/update-banner';
|
||||||
|
|
||||||
export default define({
|
export default define({
|
||||||
name: 'profile',
|
name: 'profile',
|
||||||
|
@ -41,6 +43,12 @@ export default define({
|
||||||
this.props.design++;
|
this.props.design++;
|
||||||
}
|
}
|
||||||
this.save();
|
this.save();
|
||||||
|
},
|
||||||
|
updateAvatar() {
|
||||||
|
updateAvatar(this.$root)();
|
||||||
|
},
|
||||||
|
updateBanner() {
|
||||||
|
updateBanner(this.$root)();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue