Blame view

src/store/index.ts 332 Bytes
陈文彬 authored
1
import type { App } from 'vue';
vben authored
2
import { createStore } from 'vuex';
陈文彬 authored
3
4
5
6
7
8
import { config } from 'vuex-module-decorators';
import { isDevMode } from '/@/utils/env';

config.rawError = true;

const store = createStore({
vben authored
9
  strict: isDevMode(),
陈文彬 authored
10
});
vben authored
11
陈文彬 authored
12
13
14
export function setupStore(app: App<Element>) {
  app.use(store);
}
vben authored
15
陈文彬 authored
16
export default store;