This commit is contained in:
Captain.B 2020-02-12 16:43:38 +08:00
parent 57af617fed
commit 689907cc80
3 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,8 @@
"element-ui": "^2.13.0",
"vue": "^2.6.10",
"vue-i18n": "^8.15.3",
"vue-router": "^3.1.3"
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",

View File

@ -6,6 +6,7 @@ import filters from "../common/filter";
import ajax from "../common/ajax";
import App from './App.vue';
import router from "./components/router/router";
import store from './store'
import i18n from "../i18n/i18n";
Vue.config.productionTip = false;
@ -19,6 +20,7 @@ Vue.use(ajax);
new Vue({
el: '#app',
router,
store,
i18n,
render: h => h(App)
});

View File

@ -0,0 +1,8 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
export default new Vuex.Store({})