diff --git a/src/factory/components/Resource2/index.jsx b/src/factory/components/Resource2/index.jsx index f046111ac..dabc535bf 100644 --- a/src/factory/components/Resource2/index.jsx +++ b/src/factory/components/Resource2/index.jsx @@ -10,7 +10,7 @@ import '../../common.scss' import { getSourceList, httpUrl } from '../../api'; import { factoryZoneId, docId, standardId, lessonId, manualId } from '../../../constants/factory' import { downloadFunc } from '../../../forge/Utils/utils' -import { Carousel } from 'antd'; +import { Carousel, message } from 'antd'; const iconList = [lessonsStandard1, lessonsStandard2, lessonsStandard3] @@ -163,7 +163,16 @@ const Resource2 = forwardRef(({ zoneId }, ref) => {
diff --git a/src/factory/resource/index.jsx b/src/factory/resource/index.jsx index 3b4e3f91e..8ca3a81ce 100644 --- a/src/factory/resource/index.jsx +++ b/src/factory/resource/index.jsx @@ -95,7 +95,7 @@ function Index(props) { getProjectsLists(factoryZoneId, { isHomepage: 0, pageSize: 6, pageNum: 1 }).then(res => { const rows = res.data.rows if (rows) { - setProjectList(rows.map(e => { return e.projectProperties.fullName.split('/')[1]})) + setProjectList(rows.map(e => { return e.projectProperties.name.split('/')[1]})) } }); };