Ver código fonte

公共弹窗 修改音频类型未触发资源平台调用bug

DESKTOP-O04BTUJ\muzen 2 anos atrás
pai
commit
3424113be1
1 arquivos alterados com 11 adições e 3 exclusões
  1. 11 3
      src/components/Dialog/index.vue

+ 11 - 3
src/components/Dialog/index.vue

@@ -87,14 +87,22 @@ export default {
     dialogVisible(val) {
       if (val) {
         this.dialogForm.platformId = this.channelType === 16 ? 3 : this.channelType === 17 ? 2 : null
+        this.getPlatform({
+          audioType: this.dialogForm.audioType
+        })
         this.getList()
       }
     },
     channelType(val) {
-      this.getPlatform({
-        audioType: this.dialogForm.audioType = this.channelOptions[val][0].value
-      })
+      this.dialogForm.audioType = this.channelOptions[val][0].value
     },
+    'dialogForm.audioType'(val) {
+      if(this.dialogVisible){
+        this.getPlatform({
+          audioType: val
+        })
+      }
+    }
   },
   computed: {
     // 弹窗