Use users module.
This commit is contained in:
parent
945ea5e69f
commit
e14e3e5ef5
1 changed files with 10 additions and 2 deletions
12
src/main.js
12
src/main.js
|
@ -4,14 +4,16 @@ import Vuex from 'vuex'
|
|||
import App from './App.vue'
|
||||
import PublicTimeline from './components/public_timeline/public_timeline.vue'
|
||||
|
||||
import statuses from './modules/statuses.js'
|
||||
import statusesModule from './modules/statuses.js'
|
||||
import usersModule from './modules/users.js'
|
||||
|
||||
Vue.use(Vuex)
|
||||
Vue.use(VueRouter)
|
||||
|
||||
const store = new Vuex.Store({
|
||||
modules: {
|
||||
statuses
|
||||
statuses: statusesModule,
|
||||
users: usersModule
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -30,3 +32,9 @@ new Vue({
|
|||
template: '<App/>',
|
||||
components: { App }
|
||||
})
|
||||
|
||||
const statusesEx = require('../test/fixtures/statuses.json')
|
||||
|
||||
setTimeout(() => {
|
||||
store.commit('addNewStatuses', { statuses: statusesEx, timeline: 'public', showImmediately: false })
|
||||
}, 3000)
|
||||
|
|
Loading…
Reference in a new issue