mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-01 16:28:12 +09:00
ヘッダーの戻るボタンがページリロードすると消える問題を修正
This commit is contained in:
parent
62591e0e7a
commit
7353d729d7
@ -42,8 +42,11 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
watch: {
|
||||
$route(to, from) {
|
||||
this.canBack = (window.history.length > 0 && !['index'].includes(to.name));
|
||||
$route: {
|
||||
handler(to, from) {
|
||||
this.canBack = (window.history.length > 0 && !['index'].includes(to.name));
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user