10.10综合交易所原始源码-管理后台
admin
2026-01-06 a3cc41349752d6fb067df2a58e4e4b723a915f21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import Vue from 'vue'
import Vuex from 'vuex'
import cloneDeep from 'lodash/cloneDeep'
import common from './modules/common'
import user from './modules/user'
import prod from './modules/prod'
 
 
import talks from './modules/talk'
import notify from './modules/notify'
import settings from './modules/settings'
import emoticon from './modules/emoticon'
import dialogue from './modules/dialogue'
import note from './modules/note'
 
Vue.use(Vuex)
 
export default new Vuex.Store({
  modules: {
    common,
    user,
    prod,
 
    notify,
    talks,
    settings,
    emoticon,
    dialogue,
    note,
  },
  mutations: {
    // 重置vuex本地储存状态
    resetStore (state) {
      if(this.common){
        Object.keys(state).forEach((key) => {
          state[key] = cloneDeep(process.env.VUE_APP_RESOURCES_URL['storeState'][key])
        })
      }
    }
  },
  strict: process.env.NODE_ENV !== 'production'
})