12345678910111213141516171819202122232425262728293031323334 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- import { mutations } from './mutations'
- import { actions } from './actions'
- import chat from './module/chat'
- import group from './module/group'
- Vue.use(Vuex)
- const state = {
- scatter: null,
- eos: null,
- account: '', // eos账户信息
- balance: 0, // EOS币
- mainnet: EOS_HOST,
- gtErrorCount: 0,
- eosErrorCount: 0,
- publicKey: null, // 用户公钥
- userId: '', // 用户登录id
- token: '', // 用户登录token
- curSession: 0, // 当前会话sessionid
- userInfo: null // 登录用户信息
- }
- export default new Vuex.Store({
- state,
- mutations,
- actions,
- modules: {
- chat,
- group
- }
- })
|