修复了FileList调用undefined对象方法的问题

main
karlis 2023-07-05 20:59:57 +08:00
parent 7be44d40b1
commit 2706ba50dc
1 changed files with 3 additions and 2 deletions

View File

@ -151,8 +151,9 @@ Item {
size: isDir ? 0 : model.size
stars: isDir ? 0 : model.stars
// split string to array
tags: isDir ? [] : model.tags.length === 0 ? [] : model.tags.split(
",")
tags: isDir ? [] : model.tags === null
|| model.tags === undefined
|| model.tags === "" ? [] : model.tags.split(",")
onTagClicked: {
emit: search(tag)
console.log(tag)