空字符串兼容
This commit is contained in:
@@ -53,7 +53,7 @@ export default {
|
|||||||
this.imgsUrl = []
|
this.imgsUrl = []
|
||||||
const urls = []
|
const urls = []
|
||||||
if (typeof this.urls === 'string') {
|
if (typeof this.urls === 'string') {
|
||||||
urls.push(this.urls)
|
this.urls && urls.push(this.urls)
|
||||||
} else if (Array.isArray(this.urls)) {
|
} else if (Array.isArray(this.urls)) {
|
||||||
urls.push(...this.urls)
|
urls.push(...this.urls)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user