From 26582a1f31726907ef5a35c0b48127aec95511e7 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Nov 2020 11:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B9=E7=9B=AE=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=97=E8=A1=A8=E5=AE=9A=E6=97=B6=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main_web/index/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/main_web/index/index.vue b/src/views/main_web/index/index.vue index 13794171..76885e45 100644 --- a/src/views/main_web/index/index.vue +++ b/src/views/main_web/index/index.vue @@ -312,7 +312,7 @@ export default { this.cnName = JSON.parse(sessionStorage.user).userName; //this.setDateTime(); //setInterval(this.setDateTime, 1000); - this.listProjects(); + this.listProjects(true); // setInterval(this.listProjects, 1000 * 60); }, beforeDestroy() { @@ -419,11 +419,13 @@ export default { // console.log(error); // }); // }, - async listProjects(){ + async listProjects(runTick){ const projectListRes = await prjService.queryProjectsByUserId(this.$store.state.accountId); this.projList=projectListRes.Data; this.projectsWithPage(); - this.fetchTickIns = setTimeout(() => this.listProjects(), 1000 * 60); + if(runTick) { + this.fetchTickIns = setTimeout(() => this.listProjects(true), 1000 * 60); + } }, /** * 设置分页项目数据