Просмотр исходного кода

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

vian 5 лет назад
Родитель
Сommit
2974625d7f
1 измененных файлов с 1 добавлено и 1 удалено
  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;