递归查询
findValueInNestedArrays(arr) {
for (let i = 0; i < arr.length; i++) {
if (arr[i].fileType == 1) {
return arr[i];
} else if (Array.isArray(arr[i].category)) {
const found = this.findValueInNestedArrays(arr[i].category);
if (found) {
return found;
}
}
}
return false;
},