yujialong 3 weeks ago
parent ed95b53eaa
commit ed7fe3827d
  1. 15
      src/pages/column/index.vue

@ -609,7 +609,7 @@ export default {
this.filter();
},
//
columnClick (to, left) {
async columnClick (to, left) {
this.page = 1
const { typeId } = to;
// /
@ -624,6 +624,19 @@ export default {
this.$router.replace(`/course?id=${this.id}&siteId=${this.site}`).catch(() => { })
return;
}
//
if (to.listStyleId === 77) {
const { data } = await this.$post(this.api.newlyPublishedArticles, {
siteId: this.site,
columnIds: [this.id],
pageNum: 1,
pageSize: 1,
})
if (data.records.length) {
this.$router.replace(`/article?articleId=${data.records[0].id}&siteId=${this.site}&id=${this.id}`).catch(() => { })
return
}
}
//
if (typeId === 2) {
let href = to.linkAddress;

Loading…
Cancel
Save