未验证 提交 2ac265c8 编写于 作者: O openharmony_ci 提交者: Gitee

!17474 优化ArkTS卡片网络图片下载场景的指南说明

Merge pull request !17474 from zhongjianfei/mm0215
......@@ -66,7 +66,7 @@
let tempDir = this.context.getApplicationContext().tempDir;
let tmpFile = tempDir + '/file' + Date.now();
request.downloadFile(this.context, {
url: netFile, filePath: tmpFile
url: netFile, filePath: tmpFile, enableMetered: true, enableRoaming: true
}).then((task) => {
task.on('complete', function callback() {
console.info('ArkTSCard download complete:' + tmpFile);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册