From e4b1b2553f33881be3971d1991d15c1fa7122324 Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Tue, 27 Sep 2022 15:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 固件版本管理 功能 文件上传 文件类型判定 application/octet-stream (.bin)文件 --- src/views/iot/ota/index.vue | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/views/iot/ota/index.vue b/src/views/iot/ota/index.vue index 44bd27b5..9bcbb6e9 100644 --- a/src/views/iot/ota/index.vue +++ b/src/views/iot/ota/index.vue @@ -247,6 +247,7 @@ = 0; - const isLt2M = file.size < this.fileSize; - - if (!isJPG) { - this.$message.error("上传头像图片只能是 JPG 格式!"); - } - if (!isLt2M) { - this.$message.error("上传头像图片大小不能超过 2MB!"); - } - return isLt2M; - }, // 打开厂商选择窗口 ——表格 openModelTableSelectDialog() { this.selectResult = {};