diff --git a/src/modules/contents/comments/components/ReplyCreationModal.vue b/src/modules/contents/comments/components/ReplyCreationModal.vue index 6d4ecff7..5e69f503 100644 --- a/src/modules/contents/comments/components/ReplyCreationModal.vue +++ b/src/modules/contents/comments/components/ReplyCreationModal.vue @@ -14,7 +14,6 @@ import type { } from "@halo-dev/api-client"; // @ts-ignore import { Picker } from "emoji-mart"; -import data from "@emoji-mart/data"; import i18n from "@emoji-mart/data/i18n/zh.json"; import { computed, nextTick, ref, watch, watchEffect } from "vue"; import { reset } from "@formkit/core"; @@ -120,7 +119,10 @@ const emojiPickerRef = ref(null); const handleCreateEmojiPicker = () => { const emojiPicker = new Picker({ - data: data, + data: async () => { + const data = await import("@emoji-mart/data"); + return Object.assign({}, data); + }, theme: "light", autoFocus: true, i18n: i18n,