From bb460cac8a958bd1ada0f0c54120274cf572d053 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 14 Jul 2022 18:13:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/match/preview/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 => {}) }, // 预览附件