index.js
456 Bytes
import actions from './actions';
import mutations from './mutations';
export default function() {
return {
namespaced: true,
state: {
fetchArticleList: false,
articleList: [],
fetchArticleListByTopic: false,
articleListByTopic: [],
fetchArticleUserList: false,
articleUserList: [],
articleDetail: null,
articleLastedTimeByTopic: 0,
articleStates: {}
},
actions,
mutations
};
}