Browse Source

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

vian 5 years ago
parent
commit
2974625d7f
1 changed files with 1 additions and 1 deletions
  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) {
             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;