Authored by yyq

columnType

... ... @@ -59,6 +59,7 @@ export default {
this.$refs.article.init();
},
async onFetch() {
const {columnType} = this.$route.query;
const articleId = parseInt(this.id, 10);
if (!articleId) {
... ... @@ -67,6 +68,7 @@ export default {
const result = await this.fetchArticleList({
articleId,
page: this.page,
columnType
});
if (result.code === 200) {
... ...
... ... @@ -4,7 +4,7 @@ import * as guangProcess from './guangProcess';
import * as sleep from '../../utils/sleep';
export default {
async fetchArticleList({ commit }, { articleId, authorUid, authorType, limit = 5, page = 1, thumb = false }) {
async fetchArticleList({ commit }, { articleId, authorUid, authorType, limit = 5, page = 1, thumb = false, columnType = 1001}) {
commit(Types.FETCH_ARTICLE_LIST_REQUEST, { refresh: page === 1 });
const result = await this.$api.get('/api/grass/columnArticleDetail', {
articleId,
... ... @@ -12,7 +12,7 @@ export default {
page,
authorUid,
authorType,
columnType: 1001
columnType
});
if (result && result.code === 200) {
... ...