DESKTOP-O04BTUJ\muzen 2 jaren geleden
bovenliggende
commit
1041a0a496
1 gewijzigde bestanden met toevoegingen van 14 en 12 verwijderingen
  1. 14 12
      src/mixin/index.js

+ 14 - 12
src/mixin/index.js

@@ -419,19 +419,21 @@ const classifyMixin = {
       classifyOptions: []
     }
   },
-  mounted() {
-    channelTemplate({
-      audioType: this.audioType
-    }).then(res => {
-      if (res.code === 0) {
-        res.data.map(i => {
-          this.classifyOptions.push({
-            value: i.id,
-            label: i.name
+  methods: {
+    getClassify(e) {
+      channelTemplate({
+        audioType: e
+      }).then(res => {
+        if (res.code === 0) {
+          res.data.map(i => {
+            this.classifyOptions.push({
+              value: i.id,
+              label: i.name
+            })
           })
-        })
-      }
-    })
+        }
+      })
+    }
   }
 }