mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
ヘッダーの戻るボタンがページリロードすると消える問題を修正
This commit is contained in:
parent
164cf66284
commit
16249d525f
@ -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