1、学习链接
HMRouter地址
https://gitee.com/hadss/hmrouter/blob/dev/HMRouterLibrary/README.md
2、工程配置
下载安装
ohpm install @hadss/hmrouter
添加编译插件配置

在工程目录下的build-profile.json5中,配置useNormalizedOHMUrl属性为true (我这项目创建后默认就是true)

在使用到HMRouter的模块中引入路由编译插件,修改hvigorfile.ts。 如果模块是Har则使用harPlugin(), 模块是Hsp则使用hspPlugin(), 模块是Hap则使用hapPlugin()


1851

被折叠的 条评论
为什么被折叠?



