修改部份ui
This commit is contained in:
@@ -139,6 +139,10 @@ async function request<T>(path: string, options: RequestInit = {}): Promise<T> {
|
||||
if (response.status === 403 && message === "permission denied") {
|
||||
message = "当前账号权限不足";
|
||||
}
|
||||
// nginx / 网关在请求进 Django 前拦大文件,响应体是 HTML「413 Request Entity Too Large」。
|
||||
if (response.status === 413) {
|
||||
message = "文件太大,服务器没接收。视频请压到 200MB 以内再传";
|
||||
}
|
||||
throw new ApiError(response.status, message);
|
||||
}
|
||||
if (response.status === 204) return undefined as T;
|
||||
|
||||
Reference in New Issue
Block a user