素材牛VIP会员
ionic2 jpush插件 打开通知消息后 跳转页面问题
 封***榜  分类:JavaScript  人气:850  回帖:1  发布于6年前 收藏
 onOpenNotification = function (event) {
       this.events.publish('GET_MESSAGE');    
        })

//这段是在app.components.ts

   this.event.subscribe('GET_MESSAGE', () => {
        this.rootPage = MsgPage;
    })
    
    这样始终不行,请问为什么?

 标签:ionicjavascript

讨论这个帖子(1)垃圾回帖将一律封号处理……

Lv1 新人
十***刻 产品经理 6年前#1

你的方法使用错误,具体可以参考官方文档的写法,具体见:Navigating from the Root component

 文明上网,理性发言!   😉 阿里云幸运券,戳我领取