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", "element-ui": "^2.13.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-i18n": "^8.15.3", "vue-i18n": "^8.15.3",
"vue-router": "^3.1.3" "vue-router": "^3.1.3",
"vuex": "^3.1.2"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",

View File

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