官方文档:页面路由 (@ohos.router)
目录标题
pushUrl 赋值方式
@State SecondPageUrl: router.RouterOptions = { 'url': 'pages/SecondPage' }
router.pushUrl(this.SecondPageUrl);
router.pushUrl({ url: "pages/SecondPage" })
官方文档:页面路由 (@ohos.router)
@State SecondPageUrl: router.RouterOptions = { 'url': 'pages/SecondPage' }
router.pushUrl(this.SecondPageUrl);
router.pushUrl({ url: "pages/SecondPage" })