Browse Source

去掉图形的基础路径

YaolongHan 4 years ago
parent
commit
7ad165dd22
1 changed files with 3 additions and 2 deletions
  1. 3 2
      persagy-web-big-edit/src/items/SBaseEquipment.ts

+ 3 - 2
persagy-web-big-edit/src/items/SBaseEquipment.ts

@@ -56,6 +56,7 @@ export class SBaseEquipment extends SBaseIconTextEdit {
         return this._infoPointList
     } // get infoPointList()
 
+    defaultUrl:string = '';
     /** 图得url */
     _url: string = '';
     set url(val) {
@@ -132,7 +133,7 @@ export class SBaseEquipment extends SBaseIconTextEdit {
         }
 
         this.showAnchor = false;
-        this.url = this.legendData.style.default.base64Url ? this.legendData.style.default.base64Url : this.legendData.style.default.url
+        // this.url = this.legendData.style.default.base64Url ? this.legendData.style.default.base64Url : this.legendData.style.default.url
         this.anotherMsg = this.legendData.properties.anotherMsg ? this.legendData.properties.anotherMsg : '';
         this.x = this.legendData.pos.x;
         this.y = this.legendData.pos.y;
@@ -250,7 +251,7 @@ export class SBaseEquipment extends SBaseIconTextEdit {
             this.legendData.properties.infoPointList = infoPoinList;
             this.legendData.properties.anotherMsg = this.anotherMsg;
             this.legendData.style.default.base64Url = "";
-            this.legendData.style.default.url = this.url;
+            this.legendData.style.default.url = this.defaultUrl;
             return this.legendData
         }
     }