WXL
10 天以前 4898664c53396d1a8ae0333198a94cf4d7fea5a5
src/components/CallButton/index.vue
@@ -37,7 +37,7 @@
    },
  },
  data() {
    const randomNum = Math.floor(Math.random() * 11) + 1000; // 内部定义
    const randomNum = Math.floor(Math.random() * 20) + 1000; // 内部定义
    return {
      isCalling: false,
      callStatus: "idle", // idle, calling, connected, ended
@@ -69,6 +69,8 @@
    },
  },
  mounted() {
    console.log('当前分机号',this.sipConfig);
    sipService.init(this.sipConfig);
    sipService.onStatusChange = (status) => {
      this.sipStatus = status.text;