feat: license error tip
This commit is contained in:
@@ -102,6 +102,17 @@ const baseQueryWithTokenCheck = async (args, api, extraOptions) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 451:
|
||||||
|
{
|
||||||
|
// 证书错误
|
||||||
|
if (api.endpoint !== "login") {
|
||||||
|
// 退出登录
|
||||||
|
api.dispatch(resetAuthData());
|
||||||
|
location.href = "/#/login";
|
||||||
|
}
|
||||||
|
toast.error(result.error.data || "License Error");
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 500:
|
case 500:
|
||||||
case 503:
|
case 503:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ export default function LoginPage() {
|
|||||||
"No associated account found, please contact user admin for an invitation link to join."
|
"No associated account found, please contact user admin for an invitation link to join."
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 451:
|
// 451有解析错误,暂时先客户端处理
|
||||||
toast.error("License error: Domain incorrect!");
|
case "PARSING_ERROR":
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
toast.error("Something Error");
|
toast.error("Something Error");
|
||||||
|
|||||||
Reference in New Issue
Block a user