YaolongHan 3 yıl önce
ebeveyn
işleme
88ae31e4d4
2 değiştirilmiş dosya ile 10 ekleme ve 3 silme
  1. 10 1
      src/components/baseTopu.vue
  2. 0 2
      vue.config.js

+ 10 - 1
src/components/baseTopu.vue

@@ -97,7 +97,7 @@ export default {
                 obj.style.default.url =
                   window.img_baseurl +
                   "/image-service/common/image_get?systemId=dataPlatform&key=" +
-                  obj.style.default.url;
+                  obj.properties.state[1].pic;
               } else {
                 // 默认图标
                 obj.style.default.url =
@@ -158,6 +158,15 @@ export default {
         this.scene.addItem(t);
       });
       this.fixWindow();
+
+      setTimeout(() => {
+        parse.nodes.forEach((item) => {
+          item.url =
+            window.img_baseurl +
+            "/image-service/common/image_get?systemId=dataPlatform&key=" +
+            item.data.properties.state[2].pic;
+        });
+      }, 5000);
     },
     // 读图成功回调
     statDeviceIds(res) {

+ 0 - 2
vue.config.js

@@ -7,8 +7,6 @@ module.exports = {
                 secure: false,
             },
             // 图片服务器
-            // 图片服务器
-            // 图片服务器
             '/image-service': {
                 target: 'http://39.102.40.239',
                 changeOrigin: true,