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 (将#修改为@)