Browse Source

同步修改

duy 2 months ago
parent
commit
a3985666d9
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/manager/projectinfo/tree.vue

+ 5 - 2
src/views/manager/projectinfo/tree.vue

@@ -4844,14 +4844,17 @@ export default {
         this.getTempProjectList(ids)
       },
      async getTempProjectList(ids){
-         //分页获取证书列表数据
-         const { data: res } = await getTempProject({
+      if(ids.length>0){
+          //分页获取证书列表数据
+          const { data: res } = await getTempProject({
           nodeIds:ids
         });
         if (res.code == 200) {
           this.templateIdList = res.data;
          
         }
+      }
+       
      },
     async changeTemplateId(val){