cropped file

This commit is contained in:
ThatOneCalculator 2023-10-03 00:52:49 -07:00
parent 1d50beb552
commit 66109b5a0f
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -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>