赛事预览

dev_2022-06-14 20220714
yujialong 2 years ago
parent a92e5c04f7
commit bb460cac8a
  1. 6
      src/pages/match/preview/index.vue

@ -136,7 +136,11 @@ export default {
//
getNotice() {
this.$post(`${this.api.queryAnnouncementByContestId}?pageNum=1&pageSize=1000&contestId=${this.form.id}`).then(({ data }) => {
this.notices = data.records.filter(e => e.status) // status 0稿 1
const records = data.records.filter(e => e.status) // status 0稿 1
records.map(e => {
e.announcementText = e.announcementText.replace(/<img.*?(?:>|\/>)/gi, '')
})
this.notices = records
}).catch(res => {})
},
//

Loading…
Cancel
Save