From 476b283002d700726e824418c04411567099b541 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Wed, 23 Nov 2022 15:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/exceptionHandlers.js | 4 ++-- src/exceptionHandlers.ts | 20 ++++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/lib/exceptionHandlers.js b/lib/exceptionHandlers.js index 6475f8694..cbf441d2d 100644 --- a/lib/exceptionHandlers.js +++ b/lib/exceptionHandlers.js @@ -14,7 +14,7 @@ exports.handlerDict = (_a = {}, _a.sent(); features.navigator.navigateTo({ url: '/mobile/login', - }); + }, undefined, true); return [2 /*return*/]; } }); @@ -27,7 +27,7 @@ exports.handlerDict = (_a = {}, _a.sent(); features.navigator.navigateTo({ url: '/mobile/login', - }); + }, undefined, true); return [2 /*return*/]; } }); diff --git a/src/exceptionHandlers.ts b/src/exceptionHandlers.ts index 7bf1037d1..f10279e22 100644 --- a/src/exceptionHandlers.ts +++ b/src/exceptionHandlers.ts @@ -14,14 +14,22 @@ export const handlerDict: ExceptionHandlerDict< GeneralFeatures> = { [OakUnloggedInException.name]: async (features) => { await features.token.logout(); - features.navigator.navigateTo({ - url: '/mobile/login', - }); + features.navigator.navigateTo( + { + url: '/mobile/login', + }, + undefined, + true + ); }, [OakTokenExpiredException.name]: async (features) => { await features.token.logout(); - features.navigator.navigateTo({ - url: '/mobile/login', - }); + features.navigator.navigateTo( + { + url: '/mobile/login', + }, + undefined, + true + ); } } \ No newline at end of file