Authored by yyq

detail preview

... ... @@ -89,7 +89,7 @@ export default {
async serverPrefetch() {
this.id = parseInt(this.$route.params.id, 10);
if (this.id > 0) {
if (this.id > 0 && this.$route.query.type !== 'preview') {
return this.fetchArticleList({
articleId: this.id,
singleDetail: 'Y',
... ... @@ -148,6 +148,7 @@ export default {
return this.fetchArticleList({
articleId,
fromPlatform: this.$route.query.type === 'preview' ? 'Y' : 'N',
singleDetail: 'Y'
}).then((res) => {
if (this.$refs.scroll) {
... ...
... ... @@ -14,7 +14,8 @@ export default {
thumb = false,
local = false,
columnType = 1001,
singleDetail = 'N'
singleDetail = 'N',
fromPlatform = 'N'
}) {
const commitType = singleDetail === 'Y' ? 'ARTICLE_SINGLE_DETAIL' : 'ARTICLE_LIST';
... ... @@ -43,7 +44,8 @@ export default {
authorUid,
authorType,
columnType,
singleDetail
singleDetail,
fromPlatform
});
}
... ...
... ... @@ -35,7 +35,8 @@ module.exports = {
limit: {type: Number, require: false},
articleId: {type: Number},
columnType: {type: Number},
singleDetail: {type: String}
singleDetail: {type: String},
fromPlatform: {type: String}
}
},
'/api/grass/detailRecommendArticles': {
... ...