This commit is contained in:
Wang Kejun 2022-11-23 15:22:55 +08:00
parent 425ff9a099
commit 476b283002
2 changed files with 16 additions and 8 deletions

View File

@ -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*/];
}
});

View File

@ -14,14 +14,22 @@ export const handlerDict: ExceptionHandlerDict<
GeneralFeatures<EntityDict, BRC, FRC, FrcAspectDict>> = {
[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
);
}
}