diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-07-25 16:30:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 16:30:29 +0900 |
| commit | aa3ea2b57a4f51a98449d6fc901037dcb1c3a23d (patch) | |
| tree | c0e01df445f30a1468efc3da992032cba04b9f47 | |
| parent | Update about-misskey.vue (diff) | |
| download | sharkey-aa3ea2b57a4f51a98449d6fc901037dcb1c3a23d.tar.gz sharkey-aa3ea2b57a4f51a98449d6fc901037dcb1c3a23d.tar.bz2 sharkey-aa3ea2b57a4f51a98449d6fc901037dcb1c3a23d.zip | |
fix(frontend): 初期化時とroute変更時でkeyの決定方法が違うのを修正 (#14283)
| -rw-r--r-- | packages/frontend/src/components/global/RouterView.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/global/RouterView.vue b/packages/frontend/src/components/global/RouterView.vue index 02a2edee3f..19bd794a5d 100644 --- a/packages/frontend/src/components/global/RouterView.vue +++ b/packages/frontend/src/components/global/RouterView.vue @@ -53,7 +53,7 @@ function resolveNested(current: Resolved, d = 0): Resolved | null { const current = resolveNested(router.current)!; const currentPageComponent = shallowRef('component' in current.route ? current.route.component : MkLoadingPage); const currentPageProps = ref(current.props); -const key = ref(current.route.path + JSON.stringify(Object.fromEntries(current.props))); +const key = ref(router.getCurrentKey() + JSON.stringify(Object.fromEntries(current.props))); function onChange({ resolved, key: newKey }) { const current = resolveNested(resolved); |