设置web组件的url为:‘file://’ + this.context.filesDir +’/index.html’ 即可,其中获取应用文件沙箱路径方法可参考如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/application-context-stage-V5
设置web组件的url为:‘file://’ + this.context.filesDir +’/index.html’ 即可,其中获取应用文件沙箱路径方法可参考如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/application-context-stage-V5