ionic4 - URL SegmentError:无法匹配 ionic4 中的任何路由
问题描述
当我单击按钮转到其他页面时出现此错误。我正在使用 Ionic 4。
无法匹配任何路由。URL 段:'menu/tabs/tabs/tab-home/registered/outpatient-settings/PPSettingsPath'
我发现了许多带有此错误的主题,但没有找到解决方案。我不确定为什么会有“门诊设置/”
在我的 HTML
<div class="pandora-box" routerLink="PPSettingsPath" [queryParams]="{PsPrnNumber: patientDetails?.prn }">
在我的 ts 文件中。
this.router.events.subscribe((event: RouterEvent) => {
if (event && event instanceof NavigationEnd && event.url) {
this.PPSettingsPath = event.url + '/pp-settings';
}
我希望有人能在这方面帮助我。
解决方案
推荐阅读
- python - `ModuleNotFoundError: No module named 'psutil'` 导入 psutil 模块时
- azure-application-insights - 从 NLog 发送时,Application Insights 数据是否会被采样?
- javascript - 在表单中渲染一个 button[type="submit"] 触发 onSubmit 回调
- mariadb - MariaDB 测量值 JSON_EXTRACT
- bash - 使 Deno 脚本全球可用
- pandas - 如何在单个 CSV 中表示标准化数据
- java - Java - 递归获取地图的所有键
- opencv - 在 Ubuntu 上编译时出现 OpenCV ffmpeg 错误
- wordpress - 在 Elementor 中设置 woocommerce 结帐的自定义计费字段的值
- java - 如何防止用户在变量上输入错误?