diff --git a/src/forge/Main/CoderDepotCatalogue.jsx b/src/forge/Main/CoderDepotCatalogue.jsx index f36448a80..dd0bf27da 100644 --- a/src/forge/Main/CoderDepotCatalogue.jsx +++ b/src/forge/Main/CoderDepotCatalogue.jsx @@ -9,6 +9,11 @@ const typeIco = { } function CoderDepotCatalogue({item , goToSubRoot , owner , projectsId , platform }){ + // 只显示第一个换行符前的内容 + function getMessage(value){ + let str = value.indexOf('\n') > 0 && value.split('\n'); + return str[0]; + } return(