cropped file
This commit is contained in:
parent
1d50beb552
commit
66109b5a0f
1 changed files with 6 additions and 2 deletions
|
@ -62,9 +62,9 @@ const dialogEl = ref<InstanceType<typeof XModalWindow>>();
|
|||
|
||||
const ok = async () => {
|
||||
const promise = new Promise<firefish.entities.DriveFile>(async (res) => {
|
||||
await cropper?.getBlob((blob) => {
|
||||
await cropper?.getFile((croppedFile) => {
|
||||
const formData = new FormData();
|
||||
formData.append("file", blob);
|
||||
formData.append("file", croppedFile);
|
||||
if (defaultStore.state.uploadFolder) {
|
||||
formData.append("folderId", defaultStore.state.uploadFolder);
|
||||
}
|
||||
|
@ -120,4 +120,8 @@ const cancel = () => {
|
|||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.cropper-line, .cropper-point {
|
||||
background-color: var(--accent) !important;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue