diff --git a/frontend/package.json b/frontend/package.json index c5fd5c64a9..dd0c28d277 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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", diff --git a/frontend/src/performance/main.js b/frontend/src/performance/main.js index db085981a7..468aa68112 100644 --- a/frontend/src/performance/main.js +++ b/frontend/src/performance/main.js @@ -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) }); diff --git a/frontend/src/performance/store.js b/frontend/src/performance/store.js new file mode 100644 index 0000000000..428440427a --- /dev/null +++ b/frontend/src/performance/store.js @@ -0,0 +1,8 @@ +import Vue from 'vue' +import Vuex from 'vuex' + +Vue.use(Vuex); + +export default new Vuex.Store({}) + +