Commit 8ae22ee1 by Jaxon

style: 格式化

1 parent c0e716a6
...@@ -706,8 +706,9 @@ export default { ...@@ -706,8 +706,9 @@ export default {
const name = item.name; const name = item.name;
const value = this.getAddOptionValue(name); const value = this.getAddOptionValue(name);
if (!value) if (!value) {
return; return;
}
const data = { const data = {
value, value,
...@@ -861,8 +862,9 @@ export default { ...@@ -861,8 +862,9 @@ export default {
let file = e.srcElement.files[0]; let file = e.srcElement.files[0];
let uploadType = targetItem.uploadType || "img"; let uploadType = targetItem.uploadType || "img";
let IMGTYPE = ["image/jpeg", "image/png", "image/jpg"]; let IMGTYPE = ["image/jpeg", "image/png", "image/jpg"];
if (targetItem.supportGif) if (targetItem.supportGif) {
IMGTYPE.push("image/gif"); IMGTYPE.push("image/gif");
}
// 默认1MB // 默认1MB
const limitSize = targetItem.limitSize || 1; const limitSize = targetItem.limitSize || 1;
const isLt = file.size / 1024 / 1024 < limitSize; const isLt = file.size / 1024 / 1024 < limitSize;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!