From 1a783e0a2068b1a99efb7a078f4a615f68dec18f Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期一, 18 七月 2022 16:15:35 +0800
Subject: [PATCH] add desc

---
 src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue b/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue
index f8d8476..f42c334 100644
--- a/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue
+++ b/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue
@@ -80,7 +80,7 @@
         <div class="empty" @dragover="dragover($event)" @drop="drop" v-else>
           <img src="/images/hashrate/鏈厤缃畻娉曠┖椤甸潰.png" alt="" />
           <div class="des">
-            鏆傛湭閰嶇疆绛栫暐锛岀偣鍑讳笂鏂规搷浣滈潰鏉挎寜閽紝浠庢搷浣滈潰鏉挎嫋鍒扮畻娉曞埌姝ゅ锛屽嵆鍙厤缃�
+            鏆傛湭閰嶇疆绛栫暐锛岀偣鍑讳笂鏂规搷浣滈潰鏉挎寜閽紝浠庢搷浣滈潰鏉挎嫋鍔ㄧ畻娉曞埌姝ゅ锛屽嵆鍙厤缃�
           </div>
         </div>
       </div>
@@ -192,9 +192,11 @@
     delSdk(index) {
       this.rule.rules.splice(index, 1);
 
-      if (this.rule.rules[index]) {
-        this.rule.rules[index].rule_with_pre = "";
+      if (this.rule.rules.length == 1) {
+        this.rule.rules[0].rule_with_pre = "";
       }
+
+      this.update();
 
       console.log(this.rule.rules);
     },
@@ -217,6 +219,7 @@
           }
         });
       } else {
+        delete this.rule.camera_polygons;
         saveLinkScene(this.rule).then((rsp) => {
           if (rsp && rsp.success) {
             this.$notify({

--
Gitblit v1.8.0