!3 native.fileUtils.getWritablePath() 后无需另加“/”

Merge pull request !3 from 古事东流/master
This commit is contained in:
dgflash
2023-11-04 05:30:37 +00:00
committed by Gitee

View File

@@ -66,7 +66,7 @@ export class Hot {
this.showSearchPath();
this.manifest = res.nativeUrl;
this.storagePath = `${native.fileUtils.getWritablePath()}/oops_framework_remote`;
this.storagePath = `${native.fileUtils.getWritablePath()}oops_framework_remote`;
this.assetsMgr = new native.AssetsManager(this.manifest, this.storagePath, (versionA, versionB) => {
console.log("【热更新】客户端版本: " + versionA + ', 当前最新版本: ' + versionB);
this.options?.onVersionInfo && this.options.onVersionInfo({ local: versionA, server: versionB });