diff --git a/src/views/photographicDevice/components/pictureTags.vue b/src/views/photographicDevice/components/pictureTags.vue index 0e6b5a0..07dc254 100644 --- a/src/views/photographicDevice/components/pictureTags.vue +++ b/src/views/photographicDevice/components/pictureTags.vue @@ -170,8 +170,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) {