mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-04 07:26:29 +09:00
ヘッダーの戻るボタンがページリロードすると消える問題を修正
This commit is contained in:
@ -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
|
||||
},
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user