From 4651ee07dd299db251d0147595101ad03b49bdcc Mon Sep 17 00:00:00 2001 From: raoxian Date: Wed, 16 Feb 2022 15:19:44 +0800 Subject: [PATCH] update securitylabel.js Signed-off-by: raoxian --- runtime/main/extend/systemplugin/napi/securitylabel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/securitylabel.js b/runtime/main/extend/systemplugin/napi/securitylabel.js index cfe0c6ee..a2ee81bb 100644 --- a/runtime/main/extend/systemplugin/napi/securitylabel.js +++ b/runtime/main/extend/systemplugin/napi/securitylabel.js @@ -22,10 +22,10 @@ export function mockSecurityLabel() { " 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, paramMock.paramBooleanMock) + args[len - 1].call(this, paramMock.businessErrorMock) } else { return new Promise((resolve, reject) => { - resolve(paramMock.paramBooleanMock); + resolve(); }) } },