From ce7f50ec302f5b4ddc05f3d2bc08fa06173802b4 Mon Sep 17 00:00:00 2001 From: dboy190 Date: Mon, 8 Aug 2022 17:44:34 +0800 Subject: [PATCH] code fix Signed-off-by: dboy190 --- .../main/extend/systemplugin/napi/ohos_data_distributedData.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_data_distributedData.js b/runtime/main/extend/systemplugin/napi/ohos_data_distributedData.js index 3d5285ca..af2d33d3 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_data_distributedData.js +++ b/runtime/main/extend/systemplugin/napi/ohos_data_distributedData.js @@ -498,8 +498,7 @@ export function mockDistributedData() { " on the Previewer may be different from that on a real device.") const len = args.length if (typeof args[len - 1] === 'function') { - var array = new Array([paramMock.paramStringMock, paramMock.paramNumberMock]) - args[len - 1].call(this, array) + args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramArrayMock) } else { return new Promise((resolve) => { resolve()