修复小区背景颜色,巡检点顺序一致,投诉处理按钮
This commit is contained in:
@@ -170,11 +170,10 @@ function headerToken() {
|
||||
};
|
||||
}
|
||||
const userid = ref('');
|
||||
const allowImgSuffix = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'heic'];
|
||||
const beforeAvatarUpload: UploadProps['beforeUpload'] = (rawFile: UploadRawFile) => {
|
||||
const type = rawFile.type.split('/').pop();
|
||||
console.log('type', type);
|
||||
console.log('rawFile', rawFile);
|
||||
if (['png', 'jpg', 'jpeg'].includes(type)) {
|
||||
if (allowImgSuffix.includes(type)) {
|
||||
if (rawFile.size / 1024 / 1024 <= 10) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user