提交 f1d8c73c 编写于 作者: Z zhongjianfei

fix docs bugs for ArkTS card.

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