1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-16 18:54:43 +08:00

fix: 恢复密码过期跳转 (#1252)

This commit is contained in:
ssongliu 2023-06-05 15:01:21 +08:00 committed by GitHub
parent 05e5f06cf1
commit 75fa498a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,10 @@ class RequestHttp {
}); });
return Promise.reject(data); return Promise.reject(data);
} }
if (data.code == ResultEnum.EXPIRED) {
router.push({ name: 'Expired' });
return data;
}
if (data.code == ResultEnum.ERRIP) { if (data.code == ResultEnum.ERRIP) {
globalStore.setLogStatus(false); globalStore.setLogStatus(false);
router.push({ router.push({