DESKTOP-SVI9JE1\muzen 1 năm trước cách đây
mục cha
commit
632778c589
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/mixin/index.js

+ 4 - 4
src/mixin/index.js

@@ -37,10 +37,10 @@ const devMixin = {
 }
 
 // 设备模式
-const devTypeMixin = {
+const devModeMixin = {
   data() {
     return {
-      typeOptions: [{
+      modeOptions: [{
         value: 1,
         label: '蓝牙'
       }, {
@@ -271,7 +271,7 @@ const platformMixin = {
   },
   methods: {
     // 通过音频类型获取对应的平台
-    getPlatform(e) {
+    async getPlatform(e) {
       this.platformOptions = []
       return new Promise((resolve, reject) => {
         audioType(e).then(res => {
@@ -576,7 +576,7 @@ const systemMixin = {
 
 export {
   devMixin,
-  devTypeMixin,
+  devModeMixin,
   serviceTimeMixin,
   serviceTypeMixin,
   isFreeMixin,