BUG修改

This commit is contained in:
a0049873 2022-08-05 14:51:43 +08:00
parent d4f2efd515
commit a25df90421
1 changed files with 1 additions and 6 deletions

View File

@ -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