This commit is contained in:
X1627315083
2024-07-25 13:08:25 +08:00
parent 63f4812e3d
commit d876432ac6
5 changed files with 76 additions and 4 deletions

View File

@@ -357,13 +357,10 @@ 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'));