DESKTOP-SVI9JE1\muzen 1 年間 前
コミット
313540998b
1 ファイル変更18 行追加22 行削除
  1. 18 22
      src/mixin/index.js

+ 18 - 22
src/mixin/index.js

@@ -4,12 +4,12 @@ import { platform, audioType } from '@/api/music/platform'
 
 import { options } from '@/api/music/radio'
 
-import { channelTemplate } from '@/api/operation/channel'
-
 import { list as categoryList } from '@/api/device/category'
 
 import { list as functionList } from '@/api/device/function'
 
+import { options as blogClass } from '@/api/music/blogclass'
+
 // 设备列表
 const devMixin = {
   data() {
@@ -477,7 +477,7 @@ const addressMixin = {
   }
 }
 
-// 内容分类
+// 广播分类
 const contentMixin = {
   data() {
     return {
@@ -503,28 +503,24 @@ const contentMixin = {
   }
 }
 
-// 分类
-const classifyMixin = {
+// 播客分类
+const blogClassMixin = {
   data() {
     return {
-      classifyOptions: []
+      blogClassOptions: []
     }
   },
-  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
-            })
+  mounted() {
+    blogClass().then(res => {
+      if (res.code === 0) {
+        res.data.map(i => {
+          this.blogClassOptions.push({
+            value: i.id,
+            label: i.name
           })
-        }
-      })
-    }
+        })
+      }
+    })
   }
 }
 
@@ -636,9 +632,9 @@ export {
   albumTypeMixin,
   addressMixin,
   contentMixin,
-  classifyMixin,
   currentMixin,
   coverMixin,
   channelMixin,
-  systemMixin
+  systemMixin,
+  blogClassMixin
 }