优化pinia持久化
This commit is contained in:
@@ -6,7 +6,6 @@ import App from './App.vue'
|
||||
import router from './router'
|
||||
import pinia from './stores'
|
||||
import i18n from './i18n'
|
||||
import { useI18nStore } from './stores/modules/i18n'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
@@ -15,8 +14,4 @@ app.use(router)
|
||||
app.use(pinia)
|
||||
app.use(i18n)
|
||||
|
||||
// 初始化 i18n store,从 localStorage 读取保存的语言设置
|
||||
const i18nStore = useI18nStore()
|
||||
i18nStore.initLocale()
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user