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-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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue