diff --git a/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md b/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md index f47d76da99afbc67f1327cb3c34aa0d9de6ca444..4f674091308c1d77fc23dc6edc7229930653bf86 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md @@ -390,11 +390,8 @@ onSystemEvent(callback: Callback\): boolean **示例:** ```js -let isSuccess = screenlock.onSystemEvent((err, event)=>{ +let isSuccess = screenlock.onSystemEvent((event)=>{ console.log(`onSystemEvent:callback:${event.eventType}`) - if (err) { - console.log(`onSystemEvent callback error -> ${JSON.stringify(err)}`); - } }); if (!isSuccess) { console.log(`onSystemEvent result is false`)