ADD: Implement vuex store
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
import './assets/main.css'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import { createStore } from 'vuex'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
|
||||
import en from './lang/en.json'
|
||||
|
||||
import App from './App.vue'
|
||||
|
||||
// Create a new store instance
|
||||
const store = createStore({
|
||||
state() {
|
||||
return {}
|
||||
},
|
||||
})
|
||||
|
||||
// Create VueI18n instance with locales loaded from /lang directory
|
||||
const i18n = createI18n({
|
||||
locale: 'en',
|
||||
@@ -17,6 +25,7 @@ const i18n = createI18n({
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(i18n)
|
||||
app.use(store)
|
||||
app.mount('#app')
|
||||
|
||||
var startPos = 0
|
||||
|
||||
Reference in New Issue
Block a user