完善视频上传

This commit is contained in:
none
2023-03-08 15:56:06 +08:00
parent b12fb1d7a9
commit 9428cf1785
7 changed files with 56 additions and 47 deletions

View File

@@ -115,6 +115,19 @@ export class HttpClient {
});
});
}
request(config: object) {
return new Promise((resolve, reject) => {
this.axios
.request(config)
.then((res) => {
resolve(res.data);
})
.catch((err) => {
reject(err.data);
});
});
}
}
const APP_URL = process.env.REACT_APP_URL || "";