modify code

Signed-off-by: zhaolinglan <zhaolinglan1@huawei.com>
This commit is contained in:
zhaolinglan 2024-04-11 14:52:50 +08:00
parent 3f5d9a04a4
commit c739c3eda7

View File

@ -91,7 +91,7 @@ struct Index {
message: 'switch success', duration: 200
});
setTimeout(() => {
context.terminateSelf();
context!.terminateSelf();
}, EXIT_TIME);
}).catch((err: BusinessError) => {
if (!err) {