src/App.vue
@@ -54,10 +54,26 @@ // 处理推送消息点击事件 const handlePushClick = msg => { console.log("点击推送消息:", msg); try { if (msg.payload.indexOf("/") === 0) { uni.navigateTo({ url: msg.payload, }); } else { uni.navigateTo({ url: "/" + msg.payload, // url: "/pages/managementMeetings/sealManagement/index?applicationNum=5", }); } } catch (error) { uni.showToast({ title: "路径:" + msg.payload, icon: "none", }); uni.showToast({ title: "跳转失败:" + error.message, icon: "none", }); } // 解析并处理推送消息... };