提交 6bfb8068 authored 作者: lihuihui's avatar lihuihui

update

上级 92e87b2d
...@@ -104,10 +104,8 @@ export default { ...@@ -104,10 +104,8 @@ export default {
console.log(this.dataInfo.questions_info, '=123') console.log(this.dataInfo.questions_info, '=123')
const data = this.dataInfo.questions_info.reduce( const data = this.dataInfo.questions_info.reduce(
(prev, cur) => { (prev, cur) => {
if ([1, 2, 6].includes(cur.type)) {
prev.x.push(type[cur.type]) prev.x.push(type[cur.type])
prev.y.push(cur.rate) prev.y.push(cur.rate)
}
return prev return prev
}, },
{ x: [], y: [] } { x: [], y: [] }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论