微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ionic Deeplinks路由未捕获承诺:错误:无法匹配任何路由

如何解决Ionic Deeplinks路由未捕获承诺:错误:无法匹配任何路由

我正在建立引用链接,为此,我正在使用离子的深层链接。问题是,当我尝试为引荐链接键入“代码”时,出现此错误

错误:未捕获(承诺):错误:无法匹配任何路由。网址段:“ search / hi” 错误:无法匹配任何路线。网址段:“ search / hi”

Ts:

this.deeplinks.route({
      '/hi': {}
    }).subscribe(match => {
      // match.$route - the route we matched,which is the matched entry from the arguments to route()
      // match.$args - the args passed in the link
      // match.$link - the full link data
      console.log('Successfully matched route',match);
    },nomatch => {
      // nomatch.$link - the full link data
      console.error('Got a deeplink that didn\'t match',nomatch);
    });
  }

有了这些产品和一些教程,我只需要更改'/ hi':{}并进行测试,一切都会好起来的,但是我遇到了这个路由错误,我无法解决

我是否将正确的模块用于引荐链接功能

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。