123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- export const initBaseState = function () {
- return {
- scatter: null,
- eos: null,
- account: '',
- balance: 0,
- mainnet: EOS_HOST,
- gtErrorCount: 0,
- eosErrorCount: 0,
- publicKey: null,
- userId: localStorage.getItem('user_id') || '',
- token: localStorage.getItem('token') || '',
- curSession: '',
- userInfo: null,
- isLogining: false,
- copyText: '',
- hotList: [],
- hotGame: []
- }
- }
- export const initChatData = function () {
- return {
- sessionList: [],
- isLogin: true,
- toApp: false,
- friendList: []
- }
- }
- export const initGroupData = function () {
- return {
- useCache: false,
- adminList: [],
- creator: '',
- blockList: [],
- userCounts: '',
- groupName: '',
- shareName: '',
- groupNotice: '',
- privateName: '',
- coverPhoto: '',
- url: '',
- inviteUrl: '',
- sessionInfo: {},
- eosInfo: null,
- groupId: '',
- members: {},
- membersArray: [],
- membersNum: 0,
- userId: '',
- nickName: '',
- atList: [],
- chatList: [],
- lastMsgUid: 0,
- startHash: '',
- endHash: '',
- chatUserList: [],
- userInfo: {},
- unreadNums: 0,
- chatInputFocus: false,
- pinMsg: {},
- searchList: [],
- isNewAt: true,
- isNewAtFound: false,
- isJoin: true,
- isRefreshImg: false
- }
- }
|