refactor: upgrade to vuex4

This commit is contained in:
axolotle 2024-03-04 03:28:55 +01:00
parent 74e08afff9
commit dd9ae21472
2 changed files with 3 additions and 7 deletions

View file

@ -24,8 +24,7 @@
"vue-i18n": "^8.28.2",
"vue-router": "^4.3.0",
"vue-showdown": "^2.4.1",
"vuelidate": "^0.7.7",
"vuex": "^3.6.2"
"vuex": "^4.1.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",

View file

@ -1,13 +1,10 @@
import Vue from 'vue'
import Vuex from 'vuex'
import { createStore } from 'vuex'
import info from './info'
import settings from './settings'
import data from './data'
Vue.use(Vuex)
export default new Vuex.Store({
export default createStore({
state: settings.state,
mutations: settings.mutations,
actions: settings.actions,