/*
 * @Author: jixiang
 * @Date: 2021-04-07 11:06:09
 * @LastEditTime: 2022-09-20 10:42:03
 * @LastEditors: yufan 56580223@qq.com
 * @Description:
 * @FilePath: /pc/src/store/index.ts
 * 56580223@qq.com
 */
import { createStore, createLogger, Store } from 'vuex';
import mutations from './mutations';
import modules from './modules';
import { StateType } from '@/@type';
import { InjectionKey } from 'vue';
import getters from './getters';

export const key: InjectionKey<Store<StateType>> = Symbol();

const store: Store<StateType> = createStore({
  strict: true,
  mutations,
  getters,
  actions: {},
  modules: { ...modules },
});

export default store;
