推送修复

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