revive 4 years ago
parent
commit
883b2ae5e0
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/views/main_web/index/index.vue

+ 5
- 3
src/views/main_web/index/index.vue View File

@@ -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);
}
},
/**
* 设置分页项目数据


Loading…
Cancel
Save