Skip to content

Commit

Permalink
feat: [doc] 开启store严格模式
Browse files Browse the repository at this point in the history
  • Loading branch information
imsunhao committed Aug 22, 2019
1 parent a962b41 commit 720dcea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import actions, { dispatch } from './actions'
import mutations, { commit, getState } from './mutations'
import getters from './getters'
import state from './state'
import { isProduction } from 'src/envs'

Vue.use(Vuex)

export function createStore() {
return new Vuex.Store<Tstore.state>({
strict: !isProduction,
state: state(),
actions,
mutations,
Expand Down

0 comments on commit 720dcea

Please sign in to comment.