我正在建立引用链接,为此,我正在使用离子的深层链接。问题是,当我尝试为引荐链接键入“代码”时,出现此错误:
错误:未捕获(承诺):错误:无法匹配任何路由。网址段:“ 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':{}并进行测试,一切都会好起来的,但是我遇到了这个路由错误,我无法解决。
我是否将正确的模块用于引荐链接功能?