This commit is contained in:
X1627315083
2024-07-24 11:39:55 +08:00
parent 89f15f3614
commit e2aa64bba5
4 changed files with 7 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ export default defineComponent({
v.layersObject[i].style = {
top:v.layersObject[i].position?.[0]*ratio+'px',
left:v.layersObject[i].position?.[1]*ratio+'px',
width:v.layersObject[i].imageSize?.[0]*ratio+'px',
width:v.layersObject[i].imageSize?.[0]*ratio * +'px',
height:v.layersObject[i].imageSize?.[1]*ratio+'px',
// zIndex:zIndex-=1
}

View File

@@ -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'));