fix command chat

This commit is contained in:
Chuck1sn
2025-05-25 21:09:04 +08:00
parent 402c421370
commit dde5fecd62
5 changed files with 1743 additions and 1710 deletions

View File

@@ -21,7 +21,7 @@ const makeErrorHandler =
}) => void,
) =>
(err: unknown, instance: ComponentPublicInstance | null, info: string) => {
console.error(err);
console.error(err);
if (err instanceof UnAuthError) {
signOut();
router.push(RoutePath.LOGIN);
@@ -44,6 +44,11 @@ const makeErrorHandler =
level: "error",
content: err.detail ?? err.message,
});
} else {
showAlert({
level: "error",
content: "发生异常,请稍候再试",
});
}
};