2023-10-31-2-dist
This commit is contained in:
@@ -89,7 +89,7 @@ export default defineComponent({
|
||||
beforeUpload(file:any){
|
||||
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
|
||||
if (!isJpgOrPng) {
|
||||
message.warning((this.t('Upload.jsContent2'));
|
||||
message.warning(this.t('Upload.jsContent2'));
|
||||
}
|
||||
const isLt2M = file.size / 1024 / 1024 < 2;
|
||||
if (!isLt2M) {
|
||||
|
||||
Reference in New Issue
Block a user