fix: Fix the abnormal problems that occur when the license is unbound (#8640)

This commit is contained in:
ssongliu 2025-05-14 18:54:34 +08:00 committed by GitHub
parent 93f80e64cf
commit d6723e20b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -64,6 +64,11 @@ class RequestHttp {
window.location.reload();
return Promise.reject(data);
}
if (data.code == ResultEnum.NodeUnBind) {
globalStore.currentNode = 'local';
window.location.reload();
return;
}
if (data.code == ResultEnum.ERRGLOBALLOADDING) {
globalStore.setGlobalLoading(true);
globalStore.setLoadingText(data.message);

View file

@ -12,6 +12,7 @@ export enum ResultEnum {
ERRAUTH = 406,
ERRGLOBALLOADDING = 407,
ERRXPACK = 410,
NodeUnBind = 411,
TIMEOUT = 20000,
TYPE = 'success',
}