提交 8c931fe4 authored 作者: lihuihui's avatar lihuihui

修改sofia文章

上级 ff81af6d
...@@ -61,7 +61,13 @@ export default { ...@@ -61,7 +61,13 @@ export default {
this.newsData.push({ this.newsData.push({
id: index, id: index,
title: item.name, title: item.name,
content: json === null ? '' : json[0].content, content: Array.isArray(json) ?
json.length === 0
? ''
: json[0].content
: json === null
? ''
: json[0].content,
image: item.image image: item.image
}) })
this.newsData = this.newsData.sort((a, b) => a.id - b.id) this.newsData = this.newsData.sort((a, b) => a.id - b.id)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论