修复url为null时图片上传组件报错bug。

This commit is contained in:
liteng 2018-12-31 19:49:15 +08:00
parent 71ae358478
commit d2f2758367

View File

@ -29,7 +29,7 @@ ImageUploader.prototype.render = function () {
this.parent.removeChild(this.dom);
}
if (this.url) {
if (this.url && this.url !== 'null') {
this.dom = document.createElement('img');
this.dom.className = 'Uploader';
this.dom.src = this.server + this.url;