1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-21 10:08:24 +09:00

ヘッダーの戻るボタンがページリロードすると消える問題を修正

This commit is contained in:
syuilo 2020-11-03 20:28:38 +09:00
parent 62591e0e7a
commit 7353d729d7

View File

@ -42,8 +42,11 @@ export default defineComponent({
}, },
watch: { watch: {
$route(to, from) { $route: {
this.canBack = (window.history.length > 0 && !['index'].includes(to.name)); handler(to, from) {
this.canBack = (window.history.length > 0 && !['index'].includes(to.name));
},
immediate: true
}, },
}, },