提交
This commit is contained in:
1 parent
771f010a39
commit
ee4abd361e
102 files changed
+8021
-4094
No files matched your search
@@ -802,12 +802,7 @@
|
||||
}
|
||||
|
||||
const uploadCategoryImageFile = async (file: File) => {
|
||||
const maxSizeMb = 10
|
||||
if (file.size / 1024 / 1024 > maxSizeMb) {
|
||||
ElMessage.error(`图片大小不能超过 ${maxSizeMb}MB`)
|
||||
categoryImageUploadRef.value?.clearFiles()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
ElMessage.info('图片正在上传...')
|
||||
|
||||
Reference in new issue
Block a user