Explorar el Código

fix:分享拷贝报错,旧项目项目类型兼容问题

vian hace 5 años
padre
commit
2974625d7f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/building_saas/pm/js/pm_share.js

+ 1 - 1
web/building_saas/pm/js/pm_share.js

@@ -867,7 +867,7 @@ const pmShare = (function () {
         }
         }
         for (let node of items) {
         for (let node of items) {
             if (node.children.length === 0) {//project
             if (node.children.length === 0) {//project
-                rst.push({ ID: node.data.ID, fileHierarchyName: getFileHierarchyName(node), valuationType: node.data.property.valuationType || '' })
+                rst.push({ ID: node.data.ID, fileHierarchyName: getFileHierarchyName(node), valuationType: node.data.property && node.data.property.valuationType || '' })
             }
             }
         }
         }
         return rst;
         return rst;