diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 00:03:31 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 00:03:31 +0900 |
| commit | bffcfd92da0c3db09b900dd63ce09575fdedd6f1 (patch) | |
| tree | 7abfe38c575ba5fd31de0b5727499f0575914c98 /src/client/ui/_common_ | |
| parent | Tweak UI (diff) | |
| download | sharkey-bffcfd92da0c3db09b900dd63ce09575fdedd6f1.tar.gz sharkey-bffcfd92da0c3db09b900dd63ce09575fdedd6f1.tar.bz2 sharkey-bffcfd92da0c3db09b900dd63ce09575fdedd6f1.zip | |
Tweak UI
Diffstat (limited to 'src/client/ui/_common_')
| -rw-r--r-- | src/client/ui/_common_/header.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue index 8e547eba92..6b09e3122a 100644 --- a/src/client/ui/_common_/header.vue +++ b/src/client/ui/_common_/header.vue @@ -1,5 +1,5 @@ <template> -<div class="fdidabkb" :class="{ center }" :style="`--height:${height};`"> +<div class="fdidabkb" :class="{ center }" :style="`--height:${height};`" :key="key"> <transition :name="$store.state.animation ? 'header' : ''" mode="out-in" appear> <button class="_button back" v-if="withBack && canBack" @click.stop="back()" v-tooltip="$ts.goBack"><Fa :icon="faChevronLeft"/></button> </transition> @@ -50,6 +50,7 @@ export default defineComponent({ canBack: false, showActions: false, height: 0, + key: 0, faChevronLeft, faCircle, faShareAlt, faEllipsisH, }; }, @@ -64,6 +65,10 @@ export default defineComponent({ }, watch: { + info() { + this.key++; + }, + $route: { handler(to, from) { this.canBack = (window.history.length > 0 && !['index'].includes(to.name)); |