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");