fix
This commit is contained in:
@@ -357,10 +357,13 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
beforeUpload(file: any) {
|
||||
console.log(123);
|
||||
|
||||
const isJpgOrPng =
|
||||
file.type === "image/jpeg" ||
|
||||
file.type === "image/png" ||
|
||||
file.type === "image/jpg" ||
|
||||
file.type === "image/JFIF" ||
|
||||
file.type === "image/bmp";
|
||||
if (!isJpgOrPng) {
|
||||
message.info(this.t('MoodboardUpload.jsContent3'));
|
||||
|
||||
Reference in New Issue
Block a user