1234567891011121314151617181920212223242526272829303132333435 |
- import Vue from 'vue'
- import Vuex from '../../../src'
- import * as actions from './actions'
- import mutations from './mutations'
- Vue.use(Vuex)
- export default new Vuex({
- state: {
- currentThreadID: null,
- threads: {/*
- id: {
- id,
- name,
- messages: {
- id: {
- id,
- threadId,
- threadName,
- authorName,
- text,
- timestamp,
- isRead
- }
- },
- lastMessage
- }
- */}
- },
- actions,
- mutations,
- middlewares: process.env.NODE_ENV !== 'production'
- ? [Vuex.createLogger()]
- : []
- })
|