summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global/RouterView.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-28 19:47:58 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-28 19:47:58 +0900
commitf0833cffe9342cca0dc4ea7420acee56e686f643 (patch)
tree843af8795f60e173992b965f8e2595a36c4fd877 /packages/frontend/src/components/global/RouterView.vue
parentBump version to 2025.8.0-beta.5 (diff)
downloadmisskey-f0833cffe9342cca0dc4ea7420acee56e686f643.tar.gz
misskey-f0833cffe9342cca0dc4ea7420acee56e686f643.tar.bz2
misskey-f0833cffe9342cca0dc4ea7420acee56e686f643.zip
refactor
Diffstat (limited to 'packages/frontend/src/components/global/RouterView.vue')
-rw-r--r--packages/frontend/src/components/global/RouterView.vue12
1 files changed, 4 insertions, 8 deletions
diff --git a/packages/frontend/src/components/global/RouterView.vue b/packages/frontend/src/components/global/RouterView.vue
index 3a508eaca0..d42beb531d 100644
--- a/packages/frontend/src/components/global/RouterView.vue
+++ b/packages/frontend/src/components/global/RouterView.vue
@@ -54,14 +54,10 @@ router.useListener('change', ({ resolved }) => {
if (resolved == null || 'redirect' in resolved.route) return;
if (resolved.route.path === currentRoutePath && deepEqual(resolved.props, currentPageProps.value)) return;
- function _() {
- currentPageComponent.value = resolved.route.component;
- currentPageProps.value = resolved.props;
- key.value = router.getCurrentFullPath();
- currentRoutePath = resolved.route.path;
- }
-
- _();
+ currentPageComponent.value = resolved.route.component;
+ currentPageProps.value = resolved.props;
+ key.value = router.getCurrentFullPath();
+ currentRoutePath = resolved.route.path;
});
</script>