Skip to content

Commit

Permalink
fix(frontend): 初期化時とroute変更時でkeyの決定方法が違うのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Jul 21, 2024
1 parent ee3b132 commit 4032ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/global/RouterView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4032ad5

Please sign in to comment.