chore: eslint 配置
All checks were successful
/ depcheck (push) Successful in 2m19s
/ playwright (push) Successful in 1m45s
/ surge (push) Successful in 2m48s
/ build-and-deploy-to-vercel (push) Successful in 3m10s

This commit is contained in:
mini2024
2025-03-05 00:57:51 +08:00
parent feb7659b75
commit 2b7186ef69
35 changed files with 455 additions and 458 deletions

View File

@ -6,15 +6,15 @@ interface FileExt extends File {
}
interface FileUploadInst extends FileUploadState {
chooseDisabled?: boolean;
files: FileExt[];
uploadedFiles: {
rawFile: FileExt;
name: string;
url: string;
status: 'uploading' | 'uploaded' | 'failed';
progress: number;
rawFile: FileExt;
status: 'failed' | 'uploaded' | 'uploading';
url: string;
}[];
chooseDisabled?: boolean;
}
</script>
@ -30,11 +30,11 @@ const onUploader = (event: FileUploadUploaderEvent) => {
const files = event.files as FileExt[];
for (const file of files) {
fileUploadRef.value!.uploadedFiles.push({
rawFile: file,
name: file.name,
url: '',
status: 'uploading',
progress: 0,
rawFile: file,
status: 'uploading',
url: '',
});
const formData = new FormData();
formData.append('file', file);