hn2.0
fanluyan 1 year ago
parent eb1dbb22b4
commit 69ac282b12

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

Loading…
Cancel
Save