用路由名称跳转:pushNamedRoute
router.pushNamedRoute({
//har 对应页面都要取一个名字
name: 'TestHarTwoPg', params: { 'name': '123' }
})
下一个方式,待记录
share动态
//'@bundle:包名(bundleName)/模块名(moduleName)/路径/页面所在的文件名(不加.ets后缀)'
router.pushUrl({ url: '@bundle:com.example.hmos_learn/ShareHarLibs/src/main/ets/pages/HWSuccessPage' })