async beforeDestroy() {
try {
await wmpfVoip.forceHangUpVoip();
// 挂断完成后执行清理事件
if (this.offVoipEvent) {
this.offVoipEvent(); // 执行事件清理
this.offVoipEvent = null; // 清空事件处理函数
}
} catch (error) {
console.error("Failed to hang up VoIP call:", error);
}
},
