summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-07-14 16:21:59 +0900
committerGitHub <noreply@github.com>2024-07-14 16:21:59 +0900
commitb9f3fccfac6818c1c25ce06c0d63f7d61ce6cbbb (patch)
tree4cfe292e4d34140d81692a70090d9215ec22c5f6
parentrefactor(misskey-js): enable exactOptionalPropertyTypes (#14203) (diff)
downloadsharkey-b9f3fccfac6818c1c25ce06c0d63f7d61ce6cbbb.tar.gz
sharkey-b9f3fccfac6818c1c25ce06c0d63f7d61ce6cbbb.tar.bz2
sharkey-b9f3fccfac6818c1c25ce06c0d63f7d61ce6cbbb.zip
fix(frontend): Nested RouteのときにRouterViewに当たるキーがルートのpathとぶち当たる可能性があるのを修正 (#14202)
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
-rw-r--r--packages/frontend/src/components/global/RouterView.vue2
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 06cb30eff1..02a2edee3f 100644
--- a/packages/frontend/src/components/global/RouterView.vue
+++ b/packages/frontend/src/components/global/RouterView.vue
@@ -60,7 +60,7 @@ function onChange({ resolved, key: newKey }) {
if (current == null || 'redirect' in current.route) return;
currentPageComponent.value = current.route.component;
currentPageProps.value = current.props;
- key.value = current.route.path + JSON.stringify(Object.fromEntries(current.props));
+ key.value = newKey + JSON.stringify(Object.fromEntries(current.props));
nextTick(() => {
// ページ遷移完了後に再びキャッシュを有効化