1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-20 10:09:23 -05:00

fix(frontend): 初期化時とroute変更時でkeyの決定方法が違うのを修正 ()

This commit is contained in:
かっこかり 2024-07-25 16:30:29 +09:00 committed by GitHub
parent 32651aba67
commit aa3ea2b57a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);