mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-27 04:17:51 -07:00
ヘッダーの戻るボタンがページリロードすると消える問題を修正
This commit is contained in:
parent
164cf66284
commit
16249d525f
1 changed files with 5 additions and 2 deletions
|
@ -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 a new issue