mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复url为null时图片上传组件报错bug。
This commit is contained in:
parent
71ae358478
commit
d2f2758367
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user