diff --git a/src/views/officialWebsite/banner.vue b/src/views/officialWebsite/banner.vue index 7f676257..b70c2670 100644 --- a/src/views/officialWebsite/banner.vue +++ b/src/views/officialWebsite/banner.vue @@ -253,12 +253,12 @@ export default { const reader = new FileReader(); const maxSize = 2 * 1024 * 1024; // 2MB in bytes - if (file.size > maxSize) { - this.$message.error("图片大小不能超过2MB"); - this.$refs.fileInput.value = ""; - this.loading = false; - return; - } + // if (file.size > maxSize) { + // this.$message.error("图片大小不能超过2MB"); + // this.$refs.fileInput.value = ""; + // this.loading = false; + // return; + // } reader.onload = (e) => { const imageData = e.target.result; diff --git a/src/views/officialWebsite/case.vue b/src/views/officialWebsite/case.vue index 7df41b98..d8becc89 100644 --- a/src/views/officialWebsite/case.vue +++ b/src/views/officialWebsite/case.vue @@ -265,12 +265,12 @@ detailedIntroductionTextEnTitle:'', const reader = new FileReader(); const maxSize = 2 * 1024 * 1024; // 2MB in bytes - if (file.size > maxSize) { - this.$message.error("图片大小不能超过2MB"); - this.$refs.fileInput.value = ""; - this.loading = false; - return; - } + // if (file.size > maxSize) { + // this.$message.error("图片大小不能超过2MB"); + // this.$refs.fileInput.value = ""; + // this.loading = false; + // return; + // } reader.onload = (e) => { const imageData = e.target.result; diff --git a/src/views/officialWebsite/detail.vue b/src/views/officialWebsite/detail.vue index 72526da5..675f96b7 100644 --- a/src/views/officialWebsite/detail.vue +++ b/src/views/officialWebsite/detail.vue @@ -243,12 +243,12 @@ detailedIntroductionTextEnTitle:'', const reader = new FileReader(); const maxSize = 2 * 1024 * 1024; // 2MB in bytes - if (file.size > maxSize) { - this.$message.error("图片大小不能超过2MB"); - this.$refs.fileInput.value = ""; - this.loading = false; - return; - } + // if (file.size > maxSize) { + // this.$message.error("图片大小不能超过2MB"); + // this.$refs.fileInput.value = ""; + // this.loading = false; + // return; + // } reader.onload = (e) => { const imageData = e.target.result; diff --git a/src/views/officialWebsite/new.vue b/src/views/officialWebsite/new.vue index a0661c9a..9ae9e006 100644 --- a/src/views/officialWebsite/new.vue +++ b/src/views/officialWebsite/new.vue @@ -431,12 +431,12 @@ export default { const reader = new FileReader(); const maxSize = 2 * 1024 * 1024; // 2MB in bytes - if (file.size > maxSize) { - this.$message.error("图片大小不能超过2MB"); - this.$refs.fileInput.value = ""; - this.loading = false; - return; - } + // if (file.size > maxSize) { + // this.$message.error("图片大小不能超过2MB"); + // this.$refs.fileInput.value = ""; + // this.loading = false; + // return; + // } reader.onload = (e) => { const imageData = e.target.result; diff --git a/src/views/officialWebsite/product.vue b/src/views/officialWebsite/product.vue index bac454bc..484ebb35 100644 --- a/src/views/officialWebsite/product.vue +++ b/src/views/officialWebsite/product.vue @@ -526,12 +526,12 @@ productId: "", const reader = new FileReader(); const maxSize = 2 * 1024 * 1024; // 2MB in bytes - if (file.size > maxSize) { - this.$message.error("图片大小不能超过2MB"); - this.$refs.fileInput.value = ""; - this.loading = false - return; - } + // if (file.size > maxSize) { + // this.$message.error("图片大小不能超过2MB"); + // this.$refs.fileInput.value = ""; + // this.loading = false + // return; + // } reader.onload = (e) => { const imageData = e.target.result; @@ -568,12 +568,12 @@ productId: "", const reader = new FileReader(); const maxSize = 2 * 1024 * 1024; // 2MB in bytes - if (file.size > maxSize) { - this.$message.error("图片大小不能超过2MB"); - this.$refs.fileInput1.value = ""; - this.loading = false; - return; - } + // if (file.size > maxSize) { + // this.$message.error("图片大小不能超过2MB"); + // this.$refs.fileInput1.value = ""; + // this.loading = false; + // return; + // } reader.onload = (e) => { const imageData = e.target.result;