mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复颜文字异常解析为表情包导致的渲染错误
*PostID:50212687
This commit is contained in:
@@ -198,6 +198,10 @@ function getEmojiUrl(): string {
|
||||
});
|
||||
}
|
||||
const emojiName = getEmojiName();
|
||||
const emojiMap: Record<string, string> = JSON.parse(<string>localEmojis.value);
|
||||
if (!Object.keys(emojiMap).includes(emojiName)) {
|
||||
mode.value = "text";
|
||||
}
|
||||
return JSON.parse(<string>localEmojis.value)[emojiName];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user