Commit 79f3b0d1 by linjinhong

Merge remote-tracking branch 'origin/master' into ljh

parents 09ed996b 6d207092
......@@ -2,7 +2,7 @@
"name": "JomallProductionAssistant",
"productName": "JomallProductionAssistant",
"description": "",
"version": "1.0.6",
"version": "1.0.7",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......
......@@ -260,7 +260,7 @@ export default {
bus.$emit("busEmit", {
type: "sendFile",
value: res.data,
size: { width: 35, height: 39 },
// size: { width: this.detail.mssWidth || 500, height: this.detail.mssHeight || 500 },
});
}
......
......@@ -299,7 +299,7 @@ export default {
// 获取图片的宽高
let w = image.clientWidth; // 图片宽
let h = image.clientHeight; // 图片高
console.log(w,h,'w,h');
console.log(w, h, "w,h");
const x = relativeX;
const y = relativeY;
const r = this.imgList[0].r;
......@@ -375,7 +375,12 @@ export default {
const imgFileName = this.imgList[0].fileName;
let position = ""; // 位置
let size = ""; // 图像大小
position = `${x},${y}`;
if (Number(x) < 0 || Number(y) < 0) {
position = `"${x},${y}"`;
} else {
position = `${x}${y}`;
}
size = `${w}${h}`;
console.log(position, size);
await this.sendCmd(imgFileName, size, position, r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment