diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js index 4515884cd..29067d20a 100644 --- a/public/react/src/modules/courses/Resource/Fileslistitem.js +++ b/public/react/src/modules/courses/Resource/Fileslistitem.js @@ -427,10 +427,10 @@ class Fileslistitem extends Component { {discussMessage.publish_time === null ? "" : discussMessage.is_publish === true ? moment(discussMessage.publish_time).fromNow() : moment(discussMessage.publish_time).format('YYYY-MM-DD HH:mm')} - {discussMessage && discussMessage.category_name === null ? "" : this.props.child === false ? + {discussMessage && discussMessage.category_name === undefined||discussMessage && discussMessage.category_name === null ? "" :
所属目录:
{discussMessage && discussMessage. parent_category_name}
/
{discussMessage && discussMessage.category_name}
-
: ""} + style={{display:'flex',"max-width": "300px"}}>所属目录:
{discussMessage && discussMessage. parent_category_name}
/
{discussMessage && discussMessage.category_name}
+ }

diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index e55ca7662..1719a3eb2 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -1024,7 +1024,7 @@ class Fileslists extends Component{ `} -