fix type errors in MkEmoji
This commit is contained in:
parent
75cf048876
commit
9bfa8dc417
1 changed files with 5 additions and 4 deletions
|
@ -4,16 +4,16 @@
|
|||
class="mk-emoji custom"
|
||||
:class="{ normal, noStyle }"
|
||||
:src="url"
|
||||
:alt="alt"
|
||||
:title="alt"
|
||||
:alt="alt || undefined"
|
||||
:title="alt || undefined"
|
||||
decoding="async"
|
||||
/>
|
||||
<img
|
||||
v-else-if="char && !useOsNativeEmojis"
|
||||
class="mk-emoji"
|
||||
:src="url"
|
||||
:alt="alt"
|
||||
:title="alt"
|
||||
:alt="alt || undefined"
|
||||
:title="alt || undefined"
|
||||
decoding="async"
|
||||
/>
|
||||
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
|
||||
|
@ -50,6 +50,7 @@ const customEmoji = computed(() =>
|
|||
: null,
|
||||
);
|
||||
const url = computed(() => {
|
||||
if (!customEmoji.value) return undefined;
|
||||
if (char.value) {
|
||||
return char2filePath(char.value);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue