提交 09bee018 authored 作者: pengxiaohui's avatar pengxiaohui

bug修复

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