diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-28 19:47:58 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-28 19:47:58 +0900 |
| commit | f0833cffe9342cca0dc4ea7420acee56e686f643 (patch) | |
| tree | 843af8795f60e173992b965f8e2595a36c4fd877 /packages/frontend/src/components | |
| parent | Bump version to 2025.8.0-beta.5 (diff) | |
| download | misskey-f0833cffe9342cca0dc4ea7420acee56e686f643.tar.gz misskey-f0833cffe9342cca0dc4ea7420acee56e686f643.tar.bz2 misskey-f0833cffe9342cca0dc4ea7420acee56e686f643.zip | |
refactor
Diffstat (limited to 'packages/frontend/src/components')
| -rw-r--r-- | packages/frontend/src/components/global/MkAvatar.vue | 1 | ||||
| -rw-r--r-- | packages/frontend/src/components/global/RouterView.vue | 12 |
2 files changed, 4 insertions, 9 deletions
diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index 8a9cc5286a..c2548cc7be 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -84,7 +84,6 @@ const bound = computed(() => props.link : {}); const url = computed(() => { - if (props.user.avatarUrl == null) return null; if (prefer.s.disableShowingAnimatedImages || prefer.s.dataSaver.avatar) return getStaticImageUrl(props.user.avatarUrl); return props.user.avatarUrl; }); 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> |