diff --git a/src/pages/match/preview/index.vue b/src/pages/match/preview/index.vue index 207d0b9..29e1408 100644 --- a/src/pages/match/preview/index.vue +++ b/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(/|\/>)/gi, '') + }) + this.notices = records }).catch(res => {}) }, // 预览附件