提交 ceae0385 编写于 作者: 雪洛's avatar 雪洛

docs: update jql-schema-ext

上级 9cda05d5
......@@ -253,7 +253,11 @@ module.exports {
clientInfo
} = {}) {
for(let i = 0; i < addDataList.length; i++) {
addDataList[i].summary = addDataList[i].content && addDataList[i].content.slice(0, 100)
const addDataItem = addDataList[i]
if(!addDataItem.content) {
throw new Error('缺少文章内容')
}
addDataItem.summary = addDataItem.content.slice(0, 100)
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册