From 69ac282b127c243217f2d4d81ec0f6a8d9079143 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 26 Mar 2024 16:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../photographicDevice/components/pictureTags.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/pictureTags.vue b/src/views/management/monitoringEquipment/photographicDevice/components/pictureTags.vue index cd17374..f8edec9 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/pictureTags.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/pictureTags.vue @@ -93,7 +93,7 @@ export default { ctx: null, imgpic: null, drawingSurfaceImageData: "", - color: "#0000ff", + color: "#f00", num: 2, flag: false, x: 0, @@ -169,8 +169,8 @@ export default { .then((res) => { console.log(res); this.markId = res.data.markId; - this.color = res.data.color; - this.num = res.data.boderWidth; + this.color = res.data.color !== null ? res.data.color : "#f00"; + this.num = res.data.boderWidth !== null ? res.data.boderWidth : 2; if (res.data.path !== null) { this.picsrc = res.data.path; if (res.data.list.length !== 0) {