From c8241a03913d43782b8ac21aaf5fc762b44a365c Mon Sep 17 00:00:00 2001 From: LVB8189 Date: Fri, 30 Sep 2022 17:02:06 +0800 Subject: [PATCH] Signed-off-by: LVB8189 Changes to be committed: --- runtime/main/extend/systemplugin/napi/ohos_screenLock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_screenLock.js b/runtime/main/extend/systemplugin/napi/ohos_screenLock.js index e3ef9908..87806bd5 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_screenLock.js +++ b/runtime/main/extend/systemplugin/napi/ohos_screenLock.js @@ -68,10 +68,10 @@ export function mockScreenLock() { " Previewer may be different from that on a real device.") const len = args.length if (typeof args[len - 1] === 'function') { - args[len - 1].call(this, paramMock.businessErrorMock) + args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock) } else { return new Promise((resolve) => { - resolve(); + resolve(paramMock.paramBooleanMock); }) } },