Authored by shuaiguo

feat(article): 闲鱼引入社区文章

export default [
{
name: 'Article',
path: '/xianyu/article',
// component: () => import()
},
{
name: 'ArticleDetail',
path: '/xianyu/article/detail',
// component: () => import()
}
];
... ...
export default function() {
return {
namespaced: true,
state: {}
};
}
... ...
import articleListFn from './list';
import articleDetailFn from './detail';
export default function() {
return {
namespaced: true,
modules: {
articleList: articleListFn(),
articleDetail: articleDetailFn()
},
};
}
... ...
export default function() {
return {
namespaced: true,
state: {}
};
}
... ...
... ... @@ -15,6 +15,8 @@ import storeCategory from './category';
import storeActivitys from './activitys';
import storeSecond from './second';
import article from './article';
Vue.use(Vuex);
export function createStore(context) {
... ... @@ -36,6 +38,7 @@ export function createStore(context) {
// buyerOderList: buyerOderList(),
activitys: storeActivitys(),
second: storeSecond(),
article: article(),
},
strict: process.env.NODE_ENV !== 'production',
});
... ...