瀏覽代碼

bug修复

hbchen 9 月之前
父節點
當前提交
ab8b048f58
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/views/datasheet_manage/components/toolBarSection.vue

+ 7 - 1
src/views/datasheet_manage/components/toolBarSection.vue

@@ -63,7 +63,7 @@ export default {
   },
   watch: {
     cell(nval) {
-      if(nval && nval.length>0) {
+      if(nval) {
         this.cellArray = Array.isArray(nval)?nval:[nval]
         this.option = this.cellArray[0].ShowStyle?{
           ...JSON.parse(this.cellArray[0].ShowStyle)
@@ -71,6 +71,12 @@ export default {
           nt: "",//numberType
           pn: 0,//ponitNum
         }
+      }else{
+        this.cellArray=[]
+        this.option ={
+          nt: "",//numberType
+          pn: 0,//ponitNum
+        }
       }
     }
   },