@@ -181,7 +181,7 @@ export class SIconTextItem extends SObjectItem {
* */
constructor(parent: SGraphItem | null, data?: Anchor[]) {
super(parent);
- this.img.url = `http://adm.sagacloud.cn:8080/doc/assets/img/logo.png`;
+ this.img.url = "";
this.img.width = 32;
this.img.height = 32;
this.img.origin = new SPoint(this.img.width * 0.5, this.img.height * 0.5);
@@ -157,7 +157,7 @@ export class SImageItem extends SObjectItem {
*/
onDraw(painter: SPainter): void {
painter.translate(-this.origin.x, -this.origin.y);
- if (this.isLoadOver) {
+ if (this.isLoadOver && this.url) {
// @ts-ignore
painter.drawImage(this.img, 0, 0, this.imgWidth, this.imgHeight);
}