1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

Add default image when organizationImagePath is Empty (#559)

This commit is contained in:
Raul Muñoz 2020-12-04 13:43:56 -04:00 committed by GitHub
parent 0cdca9ded5
commit 122c5233bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,9 @@ export default {
return require('@/image/ADempiere/priceChecking/no-image.jpg')
},
backgroundForm() {
if (this.isEmptyValue(this.organizationImagePath)) {
return this.defaultImage
}
if (this.isEmptyValue(this.currentImageOfProduct)) {
return this.organizationBackground
}