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) {