debian-mirror-gitlab/app/assets/javascripts/search/store/index.js
2021-01-03 14:25:43 +05:30

12 lines
284 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import createState from './state';
Vue.use(Vuex);
export const getStoreConfig = ({ query }) => ({
state: createState({ query }),
});
const createStore = config => new Vuex.Store(getStoreConfig(config));
export default createStore;