From e207c34555d4eb68e1ca5e72d875feaf6b9fbe8f Mon Sep 17 00:00:00 2001 From: 18671941053 Date: Wed, 21 Aug 2024 15:25:14 +0800 Subject: [PATCH] zjj0821 Signed-off-by: 18671941053 --- .../src/main/ets/com/ohos/model/screenLockService.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/features/screenlock/src/main/ets/com/ohos/model/screenLockService.ts b/features/screenlock/src/main/ets/com/ohos/model/screenLockService.ts index bbc6495..fc7b20b 100644 --- a/features/screenlock/src/main/ets/com/ohos/model/screenLockService.ts +++ b/features/screenlock/src/main/ets/com/ohos/model/screenLockService.ts @@ -170,12 +170,7 @@ export class ScreenLockService { lockScreen() { Trace.start(Trace.CORE_METHOD_SHOW_LOCK_SCREEN); Log.showDebug(TAG, `lockScreen`); - let length = parseInt(Router.getLength()) - Log.showDebug(TAG, `Router.getLength: ${length}`) - for (let index = 1; index < length; index++) { - Log.showInfo(TAG, `back to index`); - Router.back(); - } + //lock the screen this.screenLockModel.showScreenLockWindow(() => { Log.showInfo(TAG, `showScreenLockWindow finish`);