Explorar o código

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

vian %!s(int64=6) %!d(string=hai) anos
pai
achega
2974625d7f
Modificáronse 1 ficheiros con 1 adicións e 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) {
             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;