fix: ssr for emojis
This commit is contained in:
parent
2f8e47c947
commit
c38b8c13ca
|
@ -76,9 +76,11 @@ export async function setupI18n() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function setupEmojis() {
|
export async function setupEmojis() {
|
||||||
const promise = import('@emoji-mart/data').then(r => r.default)
|
if (process.client) {
|
||||||
const { init } = await import('emoji-mart')
|
const promise = import('@emoji-mart/data').then(r => r.default)
|
||||||
init({
|
const { init } = await import('emoji-mart')
|
||||||
data: () => promise,
|
init({
|
||||||
})
|
data: () => promise,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue