我在新建module中创建了两个页面,my.ets和SettingAndAccount.ets,且都在module中的main\_pages.json中声明了路由,但在my.ets中使用router.pushUrl({url:‘pages/my/SettingAndAccount’})却跳转失败,提示:
can’t find this page pages/my/SettingAndAccount path
this uri is empty, not support in route push.
模块间跳转可使用命名路由跳转,相关文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-routing-V5\#命名路由