1.我在entry模块中,引用了自定义web的模块,报这个错误【Cannot import files outside of the current module using relative paths】该怎么解决
2.我在entry模块中,点击事件,想跳转到web模块中自定义的WebView【我在web模块下/resouces/base/profile/main\_pages.json内有配置“page/WebView”】,应用怎么操作才能跳转过去。
1.我在entry模块中,引用了自定义web的模块,报这个错误【Cannot import files outside of the current module using relative paths】该怎么解决
2.我在entry模块中,点击事件,想跳转到web模块中自定义的WebView【我在web模块下/resouces/base/profile/main\_pages.json内有配置“page/WebView”】,应用怎么操作才能跳转过去。
1 回答879 阅读✓ 已解决
1 回答1.2k 阅读
1 回答1k 阅读
1 回答968 阅读
1 回答940 阅读
1 回答842 阅读
1 回答799 阅读
1:web模块如果是har包,请先在entry中引入har包,再import使用
2:可以使用命名路由的方式跳转。https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-routing-V5\#%E5%91%BD%E5%90%8D%E8%B7%AF%E7%94%B1