current page on exit
uni.$emit("zxpg", { zxpg: res.tips, }); uni.navigateBack(); // Return to the previous page
OnShow of the previous page
uni.$on("zxpg", (data) => { console.log("receiving event test is successful, data=", data); });
Note that the this point in uni.$on("zxpg", (data) => {}); will change