chore: update

This commit is contained in:
Anthony Fu committed 2021-08-20 12:58:29 +08:00
1 parent cddf30638a
commit 4c22495ea6
3 files changed
+22 -16

No files matched your search

+3 -1
View File
@@ -1,8 +1,10 @@
import { createI18n } from 'vue-i18n'
import { UserModule } from '~/types'
// import i18n resources
// Import i18n resources
// https://vitejs.dev/guide/features.html#glob-import
//
// Don't need this? Try vitesse-lite: https://github.com/antfu/vitesse-lite
const messages = Object.fromEntries(
Object.entries(
import.meta.globEager('../../locales/*.y(a)?ml'))
+2
View File
@@ -1,6 +1,8 @@
import { createPinia } from 'pinia'
import { UserModule } from '~/types'
// Setup Pinia
// https://pinia.esm.dev/
export const install: UserModule = ({ isClient, initialState, app }) => {
const pinia = createPinia()
app.use(pinia)