获取节点失败后跳转
This commit is contained in:
1 parent
bcd6c84e3b
commit
949d274c22
1 file changed
+2
-1
@@ -48,8 +48,9 @@ async function getNode(id) {
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
alert(err.message || '接口请求失败,请检查后端服务是否启动');
|
// 获取节点失败(非 JSON 响应 / HTTP 错误 / 网络异常),统一跳转登录页
|
||||||
console.error('获取节点请求异常:', err);
|
console.error('获取节点请求异常:', err);
|
||||||
|
location.href = '/login.html';
|
||||||
} finally {
|
} finally {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user