Kaynağa Gözat

新增验证

shenjj 7 yıl önce
ebeveyn
işleme
8f7c6d21f2
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 6 2
      pages/mobile/user/index.vue

+ 6 - 2
pages/mobile/user/index.vue

@@ -475,8 +475,12 @@
               _newArr.splice(j, 1)
             }
           }
-          this.enterpriseInfo.enBusinessScope = _newArr.join(',')
-          this.scopeLabel = this.enterpriseInfo.enBusinessScope.split(',')
+          if (_newArr.length === 0) {
+            this.scopeLabel = []
+          } else {
+            this.enterpriseInfo.enBusinessScope = _newArr.join(',')
+            this.scopeLabel = this.enterpriseInfo.enBusinessScope.split(',')
+          }
           return false
         }
         this.AddBtnShow = false