BUG修改
This commit is contained in:
parent
d4f2efd515
commit
a25df90421
|
@ -87,12 +87,7 @@ export default {
|
||||||
this.noData = true
|
this.noData = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let num = 0
|
const num = _arr.length < 3 ? _arr.length : 3
|
||||||
if (_arr.length < 3) {
|
|
||||||
num = _arr.length
|
|
||||||
} else {
|
|
||||||
num = 3
|
|
||||||
}
|
|
||||||
for (let i = 0; i < num; i++) {
|
for (let i = 0; i < num; i++) {
|
||||||
const k = i + 1
|
const k = i + 1
|
||||||
this[`no${k}Obj`].name = _arr[i].name
|
this[`no${k}Obj`].name = _arr[i].name
|
||||||
|
|
Loading…
Reference in New Issue