...
|
...
|
@@ -60,9 +60,9 @@ export default { |
|
|
}
|
|
|
},
|
|
|
serverPrefetch() {
|
|
|
const articleId = parseInt(this.$route.params.id, 10);
|
|
|
this.id = parseInt(this.$route.params.id, 10);
|
|
|
|
|
|
return articleId > 0 ? this.syncServiceArticleDetail(true) : Promise.resolve();
|
|
|
return this.id > 0 ? this.syncServiceArticleDetail(true) : Promise.resolve();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.colWidthForTwo = Math.floor(this.$el.offsetWidth / 2);
|
...
|
...
|
@@ -90,7 +90,7 @@ export default { |
|
|
syncServiceArticleDetail(thumb) {
|
|
|
const articleId = parseInt(this.id, 10);
|
|
|
|
|
|
this.fetchArticleList({
|
|
|
return this.fetchArticleList({
|
|
|
articleId,
|
|
|
singleDetail: 'Y',
|
|
|
thumb
|
...
|
...
|
|