revive hace 4 años
padre
commit
883b2ae5e0
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. +5
    -3
      src/views/main_web/index/index.vue

+ 5
- 3
src/views/main_web/index/index.vue Ver fichero

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


Cargando…
Cancelar
Guardar