mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-23 06:40:59 +00:00
code fix
Signed-off-by: dboy190 <dulei1@huawei.com>
This commit is contained in:
parent
10eb6c2b47
commit
ce7f50ec30
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user