From b7747dcd9bdfd47a31d7850e779c17b71a19ffb0 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 12 Apr 2023 17:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/match/list/index.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue index f6052a2..9d4f2de 100644 --- a/src/pages/match/list/index.vue +++ b/src/pages/match/list/index.vue @@ -233,7 +233,7 @@ export default { 'setPage' ]), getList() { - const load = Loading.service() + // const load = Loading.service() const { form } = this this.$post(this.api.competitionPageConditionQueryByOccupationlab, { pageNum: this.page, @@ -245,7 +245,7 @@ export default { startTime: form.startTime || null, publishStatus: form.publishStatus === '' ? null : form.publishStatus }).then(({ data }) => { - load.close() + // load.close() const list = data.records // 定时处理是否要显示修改结束时间按钮 this.timer = setInterval(() => { @@ -281,7 +281,7 @@ export default { this.getData() } }).catch(res => { - load.close() + // load.close() }) }, getData() { @@ -291,12 +291,18 @@ export default { this.page = 1; this.getData(); }, + // 获取redis缓存 + getRedis() { + this.$post(this.api.getRedisCacheCompetition).then(({ data }) => { + data && this.getList() + }).catch(res => {}) + }, getData() { this.getList() - if (!Setting.isDev) { + // if (!Setting.isDev) { clearInterval(this.redisTimer) this.redisTimer = setInterval(this.getRedis, 1000) - } + // } }, add() { this.$router.push("/match/add");