HarmonyOS router页面跳转失败?

我在新建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.

阅读 521
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进