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-i18n": "^8.28.2",
"vue-router": "^4.3.0", "vue-router": "^4.3.0",
"vue-showdown": "^2.4.1", "vue-showdown": "^2.4.1",
"vuelidate": "^0.7.7", "vuex": "^4.1.0"
"vuex": "^3.6.2"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",

View file

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