工程是用hbuilder工具与vue开发的前端,用
plus.push.addEventListener("receive", function(msg) {
if(msg.aps) { // Apple APNS message
alert("接收到在线APNS消息:" + JSON.stringify(msg));
} else {
alert("接收到在线透传消息:" + JSON.stringify(msg));
}
}
方法接受到服务端推送过来的数据,在vue的router路由器中如何使用界面跳转或者打开新界面。
使用过的方法:
plus.webview.open('/problemdetails');
this.$router.push('/problemdetails');
this.$router.replace({path: '/problemdetails'});
let url = encodeURI("/problemdetails");
plus.runtime.openURL(url);
这些方法都无法跳转;不知道有没有这个问题的解决办法;
c***@163.com
- 发布:2018-11-17 12:28
- 更新:2020-02-13 18:58
- 阅读:1226
3 个回复
王闯
你好 我也遇到了和你一样的问题 请问你解决了吗
稳定点行不行
../../v.html 也不行
1***@qq.com
您好,问题解决了么