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

@ -93,7 +93,7 @@ export default {
ctx: null, ctx: null,
imgpic: null, imgpic: null,
drawingSurfaceImageData: "", drawingSurfaceImageData: "",
color: "#0000ff", color: "#f00",
num: 2, num: 2,
flag: false, flag: false,
x: 0, x: 0,
@ -169,8 +169,8 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.markId = res.data.markId; this.markId = res.data.markId;
this.color = res.data.color; this.color = res.data.color !== null ? res.data.color : "#f00";
this.num = res.data.boderWidth; this.num = res.data.boderWidth !== null ? res.data.boderWidth : 2;
if (res.data.path !== null) { if (res.data.path !== null) {
this.picsrc = res.data.path; this.picsrc = res.data.path;
if (res.data.list.length !== 0) { if (res.data.list.length !== 0) {

Loading…
Cancel
Save