wip: refactor(client): migrate components to composition api

This commit is contained in:
syuilo
2022-01-16 21:31:09 +09:00
parent 3e9677904d
commit 9885c6ba6c
3 changed files with 175 additions and 208 deletions

View File

@ -35,9 +35,9 @@ const emit = defineEmits<{
(e: 'click', ev: MouseEvent): void;
}>();
const url = defaultStore.state.disableShowingAnimatedImages
const url = $computed(() => defaultStore.state.disableShowingAnimatedImages
? getStaticImageUrl(props.user.avatarUrl)
: props.user.avatarUrl;
: props.user.avatarUrl);
function onClick(ev: MouseEvent) {
emit('click', ev);