feat: license error tip

This commit is contained in:
Tristan Yang
2022-12-12 17:52:22 +08:00
parent 0e0dec9c9e
commit 6cc7bc466b
2 changed files with 13 additions and 2 deletions
+11
View File
@@ -102,6 +102,17 @@ const baseQueryWithTokenCheck = async (args, api, extraOptions) => {
}
}
break;
case 451:
{
// 证书错误
if (api.endpoint !== "login") {
// 退出登录
api.dispatch(resetAuthData());
location.href = "/#/login";
}
toast.error(result.error.data || "License Error");
}
break;
case 500:
case 503:
{