yunxing пре 4 година
родитељ
комит
d8c418df9d
3 измењених фајлова са 5 додато и 4 уклоњено
  1. 1 0
      public/systemConf.js
  2. 2 2
      src/lib/items/SEquipmentItem.ts
  3. 2 2
      vue.config.js

+ 1 - 0
public/systemConf.js

@@ -7,6 +7,7 @@ var __systemConf = {
     systemCode: "wandaTopological",
     conf: {},
     imgKey: [
+        //拓扑图 imgKey值
         // 开发环境
         "8bec0771df4c459bb6e692a7eee18d22",
         "d0a5e641e789480e84c8c4f60fbe1c80",

+ 2 - 2
src/lib/items/SEquipmentItem.ts

@@ -18,7 +18,7 @@ export class SEquipmentItem extends SObjectItem {
     }
     set imgKey(v: string) {
         this._imgKey = v;
-        this.img.url = `http://localhost:8091/serve/topology-wanda/Picture/query/${v}`;
+        this.img.url = `/serve/topology-wanda/Picture/query/${v}`;
         this.img.connect("imgLoadOver", this, () => {
             // 抛出设备中的图片加载完成事件
             this.$emit("equipImgLoadOver");
@@ -58,7 +58,7 @@ export class SEquipmentItem extends SObjectItem {
             this.loadEquipment(epData);
         } else if (epData) {
             //绘制设备
-            this.img.url = `http://localhost:8091/serve/topology-wanda/Picture/query/14d978b7edd346f088d6cfb53ada4070`;
+            this.img.url = `/serve/topology-wanda/Picture/query/14d978b7edd346f088d6cfb53ada4070`;
             this.img.width = 24;
             this.img.height = 24;
             //添加设备

+ 2 - 2
vue.config.js

@@ -47,9 +47,9 @@ module.exports = {
     },
     lintOnSave: false,
     // publicPath: '/dist',
-    publicPath: '/wandaEditer',
+    publicPath: '/wandaTopol',
     // 打包名称
-    outputDir: 'wandaEditer',
+    outputDir: 'wandaTopol',
     // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
     assetsDir: 'static',
 }