Use users module.
This commit is contained in:
parent
945ea5e69f
commit
e14e3e5ef5
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 New Issue
Block a user