5.1日 暂定 水电表管理
This commit is contained in:
@@ -77,7 +77,6 @@ const beforeAvatarUpload: UploadProps['beforeUpload'] = (rawFile: UploadRawFile)
|
||||
}
|
||||
};
|
||||
const handleAvatarSuccess: UploadProps['onSuccess'] = (response: any) => {
|
||||
console.log(response);
|
||||
if (response.code === 500) {
|
||||
form.value.url = '';
|
||||
} else if (response.code === 200) {
|
||||
@@ -85,9 +84,7 @@ const handleAvatarSuccess: UploadProps['onSuccess'] = (response: any) => {
|
||||
}
|
||||
};
|
||||
|
||||
const handleAvatarError: UploadProps['onError'] = (respones) => {
|
||||
console.log(respones);
|
||||
};
|
||||
const handleAvatarError: UploadProps['onError'] = (respones) => {};
|
||||
|
||||
const formRef = ref();
|
||||
const form = ref({
|
||||
|
||||
Reference in New Issue
Block a user