mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
http
This commit is contained in:
@@ -129,9 +129,9 @@ class HttpClient {
|
||||
const errMessage = data?.message || error.message;
|
||||
|
||||
switch (status) {
|
||||
// case 401:
|
||||
// window.location.href = "/login";
|
||||
// break;
|
||||
case 401:
|
||||
window.location.href = "/login";
|
||||
break;
|
||||
case 403:
|
||||
console.error("Permission denied:", errMessage);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user