空字符串兼容

This commit is contained in:
zhujingzhou
2025-07-20 14:46:30 +07:00
parent 5dd5e96efd
commit 31fec3d2ce
+1 -1
View File
@@ -53,7 +53,7 @@ export default {
this.imgsUrl = []
const urls = []
if (typeof this.urls === 'string') {
urls.push(this.urls)
this.urls && urls.push(this.urls)
} else if (Array.isArray(this.urls)) {
urls.push(...this.urls)
}