From c1c0be063d53630c734ae45869c04d0a040386ef Mon Sep 17 00:00:00 2001 From: Kven <2955163637@qq.com> Date: Tue, 11 Mar 2025 17:26:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E4=BB=A3=E7=A0=81=E5=B9=B6=E4=BC=98=E5=8C=96=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了多处不必要的 console.log 语句 - 优化了错误处理,使用 Message 组件显示错误信息 - 简化了部分代码结构,提高了可读性- 移除了未使用的注释代码 --- .../workplace/components/data-panel.vue | 1 - .../iot/device/components/device-detail.vue | 1 - .../iot/device/components/device-map.vue | 7 ++- src/views/iot/deviceMap/index.vue | 61 +++++-------------- .../iot/product/components/product-edit.vue | 1 - .../iot/product/components/product-tsl.vue | 1 - .../bulletin/components/bulletin-edit.vue | 1 - 7 files changed, 20 insertions(+), 53 deletions(-) diff --git a/src/views/dashboard/workplace/components/data-panel.vue b/src/views/dashboard/workplace/components/data-panel.vue index 6ef6759..14c9cba 100644 --- a/src/views/dashboard/workplace/components/data-panel.vue +++ b/src/views/dashboard/workplace/components/data-panel.vue @@ -158,7 +158,6 @@ label: '今日新增', value: props.alarmInfo.todayWarningCount, }]; - console.log(props.deviceInfo, props.alarmInfo, props.productInfo); \ No newline at end of file diff --git a/src/views/iot/product/components/product-edit.vue b/src/views/iot/product/components/product-edit.vue index 13be49c..331f6c6 100644 --- a/src/views/iot/product/components/product-edit.vue +++ b/src/views/iot/product/components/product-edit.vue @@ -348,7 +348,6 @@ if (res.status === 200) { onSuccess(res.data); formData.value.attachmentIds?.push(res.data.id); - console.log(formData.value); } else { onError(res.data); } diff --git a/src/views/iot/product/components/product-tsl.vue b/src/views/iot/product/components/product-tsl.vue index a181388..daa0e17 100644 --- a/src/views/iot/product/components/product-tsl.vue +++ b/src/views/iot/product/components/product-tsl.vue @@ -692,7 +692,6 @@ }; // 点击添加参数 const handleAddParams = (data: string) => { - console.log(data); if (data === 'serveInputData') { serveInputData.value.push({ name: '', diff --git a/src/views/notification/bulletin/components/bulletin-edit.vue b/src/views/notification/bulletin/components/bulletin-edit.vue index 6897e6b..9eb9c40 100644 --- a/src/views/notification/bulletin/components/bulletin-edit.vue +++ b/src/views/notification/bulletin/components/bulletin-edit.vue @@ -257,7 +257,6 @@ if (res.status === 200) { onSuccess(res.data); formData.value.attachmentIds?.push(res.data.id); - console.log(formData.value); } else { onError(res.data); }