推送修复

This commit is contained in:
THK3121 2023-08-29 16:47:56 +08:00
parent eac42fd42c
commit 5073bdd82e

View File

@ -256,7 +256,7 @@
this.showToask();
// this.initOaHomeDada();
this.getOrderList();
this.test()
this.noticeFn()
},
computed: {
@ -278,14 +278,9 @@
}
},
methods: {
test() {
// const audioContext = uni.createInnerAudioContext()
// // //
// audioContext.src = '/static/mp3/order.mp3'
// audioContext.play()
// console.log("sdsdsd")
//
noticeFn() {
const audioContext = uni.createInnerAudioContext()
//
audioContext.src = '/static/mp3/order.mp3'
jpushModule.addNotificationListener(res => {
if (res.notificationEventType == 'notificationOpened') return