吉安感知网项目-前端
shuishen
2026-02-27 f4170cfe7dbd5c7f2008233d9d16618ffec44064
uniapps/work-app/src/subPackages/voiceCallDetail/index.vue
@@ -11,6 +11,8 @@
import { useUserStore } from "@/store/index.js"
import { getWebViewUrl } from "@/utils/index.js";
import { onLoad } from "@dcloudio/uni-app";
import {cancelIncomingCallNotification } from '@/uni_modules/lgh-dialog'
const userStore = useUserStore()
const userParams = userStore?.userInfo ? JSON.stringify(userStore.userInfo) : '{}'
const sWebViewRef = ref(null);
@@ -84,6 +86,13 @@
   }
}
// 监听离开
onUnload(() => {
   // #ifdef APP-PLUS
   cancelIncomingCallNotification()
   // #endif
})
</script>
<style lang="scss" scoped>