From ba5847d0866f608576199583e269fc0c4b9e7056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?home=E5=AD=99?= <1162067978@qq.com> Date: Thu, 31 Jul 2025 09:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=98=E7=BD=91=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/officialWebsite/banner.vue | 12 ++++++------ src/views/officialWebsite/case.vue | 12 ++++++------ src/views/officialWebsite/detail.vue | 12 ++++++------ src/views/officialWebsite/new.vue | 12 ++++++------ src/views/officialWebsite/product.vue | 24 ++++++++++++------------ 5 files changed, 36 insertions(+), 36 deletions(-) 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;