@@ -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
+ })
})
- })
- }
+ }