From 8b31ebab2fd3bb4397f4966767a1ed7ddef3ff2c Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期一, 27 九月 2021 17:42:06 +0800
Subject: [PATCH] 系统设置v1.1

---
 src/pages/panoramicView/components/TracePlot.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/pages/panoramicView/components/TracePlot.vue b/src/pages/panoramicView/components/TracePlot.vue
index b17498b..a4e5aca 100644
--- a/src/pages/panoramicView/components/TracePlot.vue
+++ b/src/pages/panoramicView/components/TracePlot.vue
@@ -175,7 +175,7 @@
           })
         });
         for (var i = 0; i < _this.actObjs.length; i++) {
-          _this.actObjs[i].color = _this.colorArr[i % 10];
+          this.$set(_this.actObjs[i], 'color', _this.colorArr[i % 10]);
           this.$set(_this.actObjs[i], 'isHide', _this.actObjs[i].isHide);
         }
         _this.drawTracePath();
@@ -337,11 +337,13 @@
           if (!_this.actObjs[i].posInfo.length) {
             _this.actObjs.splice(i, 1);
           }
-          _this.actObjs[i].color = _this.colorArr[i % 10];
+
+          this.$set(_this.actObjs[i], 'color', _this.colorArr[i % 10]);
           this.$set(_this.actObjs[i], 'isHide', _this.actObjs[i].isHide);
         }
 
-        console.log(_this.actObjs)
+        // console.log(_this.actObjs)
+
         _this.drawTracePath();
         _this.timeMark = new Date();
         _this.timer = setTimeout(() => {

--
Gitblit v1.8.0