🐞 fix: 不可使用顶级 await

This commit is contained in:
m1m1sha 2024-05-07 13:43:08 +08:00
parent 83baf2fdc7
commit c0dc9a493d

View File

@ -36,7 +36,7 @@ const router = createRouter({
app.use(router) app.use(router)
app.use(createPinia()) app.use(createPinia())
app.use(i18n, { useScope: 'global' }) app.use(i18n, { useScope: 'global' })
await loadLanguageAsync(localStorage.getItem('lang') || 'en') loadLanguageAsync(localStorage.getItem('lang') || 'en')
app.use(PrimeVue) app.use(PrimeVue)
app.use(ToastService) app.use(ToastService)