This commit is contained in:
李志鹏
2026-04-08 11:06:31 +08:00
parent 6f0780ac2e
commit 41e530d33d
5 changed files with 55 additions and 2 deletions

View File

@@ -391,8 +391,8 @@ export class PartManager {
this.canvas.loading.value = true;
});
return new Promise((resolve, reject) => {
// const user_id = store.state.UserHabit.userDetail.userId;
const user_id = 24299;
const user_id = store.state.UserHabit.userDetail.userId;
// const user_id = 24299;
const data = {
image_path: this.props.clothingMinIOPath,
user_id,

View File

@@ -7,6 +7,7 @@ import { canvasConfig } from "../config/canvasConfig";
export const createCanvas = (elementId, options = {}) => {
// Create the canvas instance
const canvas = new fabric.Canvas(elementId, {
controlsAboveOverlay: true,// 控制面板在图层之上
enableRetinaScaling: canvasConfig.enableRetinaScaling,
renderOnAddRemove: false,
preserveObjectStacking: true, // 保持对象堆叠顺序