diff --git a/src/component/Canvas/CanvasEditor/managers/PartManager.js b/src/component/Canvas/CanvasEditor/managers/PartManager.js index 2cf19608..177ff327 100644 --- a/src/component/Canvas/CanvasEditor/managers/PartManager.js +++ b/src/component/Canvas/CanvasEditor/managers/PartManager.js @@ -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, diff --git a/src/component/Canvas/CanvasEditor/utils/canvasFactory.js b/src/component/Canvas/CanvasEditor/utils/canvasFactory.js index 4f562555..3419541a 100644 --- a/src/component/Canvas/CanvasEditor/utils/canvasFactory.js +++ b/src/component/Canvas/CanvasEditor/utils/canvasFactory.js @@ -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, // 保持对象堆叠顺序 diff --git a/src/router/index.ts b/src/router/index.ts index b264f4f2..c3f46be5 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -163,6 +163,20 @@ const routes: Array = [ name: "otherUsers", meta: { enter: "all" }, component: () => import("@/component/Account/otherUsers.vue"), + }, + { + path: "seller", + name: "seller", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/index.vue"), + children:[ + { + path: "brandProfile", + name: "brandProfile", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/BrandProfile/index.vue"), + }, + ], }, ], }, diff --git a/src/views/SellerDashboard/BrandProfile/index.vue b/src/views/SellerDashboard/BrandProfile/index.vue new file mode 100644 index 00000000..784cca12 --- /dev/null +++ b/src/views/SellerDashboard/BrandProfile/index.vue @@ -0,0 +1,13 @@ + + + + diff --git a/src/views/SellerDashboard/index.vue b/src/views/SellerDashboard/index.vue new file mode 100644 index 00000000..3791fc63 --- /dev/null +++ b/src/views/SellerDashboard/index.vue @@ -0,0 +1,25 @@ + + + +