diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-19 15:17:41 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-19 15:17:41 +0900 |
| commit | bdc72e5817782316bb2c56ab362b4aa237236bef (patch) | |
| tree | 209e6fca274123ea93dc38bce5e9a96bef15a974 /packages/frontend/src/components/global/RouterView.vue | |
| parent | 🎨 (diff) | |
| download | misskey-bdc72e5817782316bb2c56ab362b4aa237236bef.tar.gz misskey-bdc72e5817782316bb2c56ab362b4aa237236bef.tar.bz2 misskey-bdc72e5817782316bb2c56ab362b4aa237236bef.zip | |
clean up
Diffstat (limited to 'packages/frontend/src/components/global/RouterView.vue')
| -rw-r--r-- | packages/frontend/src/components/global/RouterView.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/components/global/RouterView.vue b/packages/frontend/src/components/global/RouterView.vue index b01e355c5e..2f1ee6734f 100644 --- a/packages/frontend/src/components/global/RouterView.vue +++ b/packages/frontend/src/components/global/RouterView.vue @@ -44,13 +44,13 @@ provide(DI.routerCurrentDepth, currentDepth + 1); const current = router.current!; const currentPageComponent = shallowRef('component' in current.route ? current.route.component : MkLoadingPage); const currentPageProps = ref(current.props); -const key = ref(router.getCurrentKey() + JSON.stringify(Object.fromEntries(current.props))); +const key = ref(router.getCurrentPath()); -function onChange({ resolved, key: newKey }) { +function onChange({ resolved }) { if (resolved == null || 'redirect' in resolved.route) return; currentPageComponent.value = resolved.route.component; currentPageProps.value = resolved.props; - key.value = newKey + JSON.stringify(Object.fromEntries(resolved.props)); + key.value = router.getCurrentPath(); nextTick(() => { // ページ遷移完了後に再びキャッシュを有効化 |