wip: refactor(client): migrate components to composition api
This commit is contained in:
parent
3e9677904d
commit
9885c6ba6c
3 changed files with 175 additions and 208 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue