mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-06 15:14:29 +08:00
fix: Fix the abnormal problems that occur when the license is unbound (#8640)
This commit is contained in:
parent
93f80e64cf
commit
d6723e20b8
2 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ export enum ResultEnum {
|
|||
ERRAUTH = 406,
|
||||
ERRGLOBALLOADDING = 407,
|
||||
ERRXPACK = 410,
|
||||
NodeUnBind = 411,
|
||||
TIMEOUT = 20000,
|
||||
TYPE = 'success',
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue