index.js
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import actions from './actions';
import mutations from './mutations';
export default function() {
return {
namespaced: true,
state: {
fetchArticleList: false,
articleList: [],
articleThumbList: [],
fetchArticleListByTopic: false,
articleListByTopic: [],
fetchArticleUserList: false,
articleUserList: [],
articleUserThumbList: [],
fetchArticleDetail: false,
articleDetail: {},
articleProductList: [],
articleLastedTimeByTopic: 0,
articleStates: {},
authorStates: {},
fetchTopicInfo: false,
topicInfo: {},
fetchTopicArticles: false,
articleSingleDetail: {},
fetchArticleSingleDetail: false,
fetchDetailRecommendArticles: false,
articleNiceList: [],
articleNiceThumbList: [],
articleLastedTimeByNice: 0,
fetchArticleNiceList: false,
topicList: [],
fetchTopicList: false,
fetchTopicPage: 1,
fetchTopicLastedTime: 0
},
actions,
mutations
};
}