فهرست منبع

直播company 拨号功能上传

yuhongqi 17 ساعت پیش
والد
کامیت
d5f847753d
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      src/main.js

+ 9 - 0
src/main.js

@@ -14,6 +14,8 @@ import elementDirective from './directive/select'
 
 
 import './assets/icons' // icon
 import './assets/icons' // icon
 import './permission' // permission control
 import './permission' // permission control
+import { callNumber,callOff } from "@/utils/call";
+import { callMobile } from "@/api/company/companyVoiceApi"
 import { getDicts } from "@/api/system/dict/data";
 import { getDicts } from "@/api/system/dict/data";
 import { getConfigKey } from "@/api/system/config";
 import { getConfigKey } from "@/api/system/config";
 import {cloneObject, parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/common";
 import {cloneObject, parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/common";
@@ -63,6 +65,13 @@ Vue.prototype.msgInfo = function (msg) {
   this.$message.info(msg);
   this.$message.info(msg);
 }
 }
 
 
+// 拨打电话
+import audio from 'vue-mobile-audio'
+Vue.use(audio)
+Vue.prototype.callNumber = callNumber
+Vue.prototype.callOff = callOff
+Vue.prototype.callMobile = callMobile
+
 // 全局组件挂载
 // 全局组件挂载
 Vue.component('DictTag', DictTag)
 Vue.component('DictTag', DictTag)
 Vue.component('Pagination', Pagination)
 Vue.component('Pagination', Pagination)