Improve resource list page.

This commit is contained in:
Yang Luo
2021-09-06 00:08:16 +08:00
parent a1b16f88d1
commit f4a59de3a5
3 changed files with 43 additions and 43 deletions

View File

@ -58,7 +58,7 @@ export const CropperDiv = (props) => {
// Setting.showMessage("success", "uploading...");
const extension = image.substring(image.indexOf('/') + 1, image.indexOf(';base64'));
const fullFilePath = `avatar/${user.owner}/${user.name}.${extension}`;
ResourceBackend.uploadResource(user.owner, user.name, "avatar", account.name, fullFilePath, blob)
ResourceBackend.uploadResource(user.owner, user.name, "avatar", "CropperDiv", fullFilePath, blob)
.then((res) => {
if (res.status === "ok") {
window.location.href = "/account";