Commit 76d3f9b3 authored by Administrator's avatar Administrator

update

parent 2aaad0d2
......@@ -896,8 +896,8 @@ const onChangeScreen = (val: string) => {
// cover_backcover.cover_pic_with_text_local = default_data.cover_backcover.cover_pic_with_text_local;
update_and_modify_product.if_need = "true";
update_and_modify_product.pic = "http://127.0.0.1:5001/assets/2024/04/18/b7f41e18-fd2f-11ee-980d-76e065928c9e_resized.png?v=20240418112349682";
update_and_modify_product.pic_local = "assets/2024/04/18/b7f41e18-fd2f-11ee-980d-76e065928c9e_resized.png";
update_and_modify_product.pic = "http://127.0.0.1:5001/assets/2024/04/20/7336ed1a-fefa-11ee-8709-76e065928c9e_resized.jpg";
update_and_modify_product.pic_local = "assets/2024/04/20/7336ed1a-fefa-11ee-8709-76e065928c9e_resized.jpg";
}
// 宽高
......@@ -1730,7 +1730,9 @@ const showUploadAndModifyProductPicInPaintDialog = () => {
mask_ctx.moveTo(offsetX, offsetY);
mask_ctx.lineTo(offsetX, offsetY);
mask_ctx.stroke();
console.log(offsetX, offsetY)
console.log(offsetX, offsetY);
// 清空再push,保证里面只有一个点
update_and_modify_product.cutout_obj = <Wm.Coordinate[]>[];
update_and_modify_product.cutout_obj.push({x: offsetX, y: offsetY})
}
// 清除画布
......@@ -1924,7 +1926,16 @@ const onSubmitUploadAndModifyProductPicInPaint = async () => {
:style="{ width: String(parseInt(form.img_size.width) / 3) + 'px' }"
class="dashed-div"
>
<el-image :src="update_and_modify_product.pic" />
<!-- <el-image :src="update_and_modify_product.pic" /> -->
<el-image
:src="update_and_modify_product.pic"
:zoom-rate="1.0"
:max-scale="1.5"
:min-scale="1.5"
:preview-src-list="[update_and_modify_product.pic]"
fit="cover"
:hide-on-click-modal="true"
/>
</div>
<!-- <div
:style="{ width: String(parseInt(form.img_size.width) / 3) + 'px' }"
......
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