项目中使用了多module作为功能级的拆分,其中有个一个account用于处理用户的登录注册账号管理,并包含了page,当在entry中使用router.pushUrl({url: ‘pages/main/LoginPage’})是无法启动的,需要使用router.pushUrl({url: @bundle:${getContext(this).applicationInfo.name}/account/ets/pages/main/LoginPage})这样的写法,在account内容跳转时,依旧需要这种复杂的写法,有没有类似Arouter的实现,保证页面path唯一即可快速跳转,而不需要把详细路径写全
可以看看navigation,可以参考codeLab里的的应用导航设计:https://developer.huawei.com/consumer/cn/doc/harmonyos-samples/samples-0000001162414961
或者参考一下三方库:https://ohpm.openharmony.cn/\#/cn/detail/@easy%2Frouter