mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
refactor: upgrade to vuex4
This commit is contained in:
parent
74e08afff9
commit
dd9ae21472
2 changed files with 3 additions and 7 deletions
|
@ -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",
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue