thêm giao diện quản lý thuyền
This commit is contained in:
@@ -72,7 +72,11 @@ api.interceptors.response.use(
|
||||
statusText ||
|
||||
"Unknown error";
|
||||
|
||||
showErrorToast(`Lỗi ${status}: ${errMsg}`);
|
||||
// Không hiển thị toast cho status 400 (validation errors)
|
||||
if (status !== 400) {
|
||||
showErrorToast(`Lỗi ${status}: ${errMsg}`);
|
||||
}
|
||||
|
||||
if (status === 401) {
|
||||
handle401();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user