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