From 9461caf2a459a7ed1eb16f8f439c02cfbcf1930b Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期三, 02 八月 2023 15:06:08 +0800 Subject: [PATCH] 新增功能 --- pages/tabBar/notice/notice.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/tabBar/notice/notice.vue b/pages/tabBar/notice/notice.vue index fbacbc5..211adbd 100644 --- a/pages/tabBar/notice/notice.vue +++ b/pages/tabBar/notice/notice.vue @@ -181,13 +181,13 @@ getNotice(this.data).then(res => { if (res.code == 100) { // this.noticeList = res.data ? res.data : []; - let list = res.data?res.data: []; - if (res.pageIndex != 1) { - this.noticeList = this.noticeList.concat(list) - } else { - this.noticeList = list; - } - this.total = res.total + let list = res.data?res.data: []; + if (res.pageIndex != 1) { + this.noticeList = this.noticeList.concat(list) + } else { + this.noticeList = list; + } + this.total = res.total this.noticeListCopy = this.noticeList; if (this.noticeList.length > 0) { this.noticeList.forEach((item, index) => { -- Gitblit v1.9.2