wangziqian 5 gadi atpakaļ
vecāks
revīzija
4cdedeb3dc
1 mainītis faili ar 9 papildinājumiem un 5 dzēšanām
  1. 9 5
      src/views/ToConfigure/components/modifyNotice.vue

+ 9 - 5
src/views/ToConfigure/components/modifyNotice.vue

@@ -311,11 +311,15 @@ export default {
       },
       immediate: true
     },
-    // 'formData.clientId': { // 客户端改变,版本默认取第一个版本
-    //   handler(newV) {
-    //     this.formData.clientVersionId = (this.clientList[0] && this.clientList[0].code) || null
-    //   }
-    // },
+    'formData.clientId': { // 客户端改变,版本默认取第一个版本
+      handler(newV) {
+        // this.formData.clientVersionId = (this.clientList[0] && this.clientList[0].code) || null
+        console.log(newV)
+        if (newV === null || newV === '' || newV === undefined) {
+          this.formData.clientVersionId = null
+        }
+      }
+    },
     'noticeList.Email': {
       handler(newV, oldV) {
         if (newV) {