|
@@ -87,28 +87,28 @@ export default {
|
|
|
if (col) {
|
|
|
const res = await this.newsquery({ column_id: col.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `kjzxLists`, res.data);
|
|
|
+ this.$set(this, `kjzxLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
|
|
|
}
|
|
|
}
|
|
|
let col2 = this.column.find(i => i.site == 'gzdt');
|
|
|
if (col2) {
|
|
|
const res = await this.newsquery({ column_id: col2.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `gzdtLists`, res.data);
|
|
|
+ this.$set(this, `gzdtLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
|
|
|
}
|
|
|
}
|
|
|
let col3 = this.column.find(i => i.site == 'tztg');
|
|
|
if (col3) {
|
|
|
const res = await this.newsquery({ column_id: col3.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `tztgLists`, res.data);
|
|
|
+ this.$set(this, `tztgLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
|
|
|
}
|
|
|
}
|
|
|
let col4 = this.column.find(i => i.site == 'jsqy');
|
|
|
if (col4) {
|
|
|
const res = await this.newsquery({ column_id: col4.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `jsqyLists`, res.data);
|
|
|
+ this.$set(this, `jsqyLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
|
|
|
}
|
|
|
}
|
|
|
},
|