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, // 保持对象堆叠顺序

View File

@@ -163,6 +163,20 @@ const routes: Array<RouteRecordRaw> = [
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"),
},
],
},
],
},

View File

@@ -0,0 +1,13 @@
<template>
<div class="brand-profile-index">brand-profile-index</div>
</template>
<script lang="ts" setup>
</script>
<style scoped lang="less">
.seller-dashboard-index {
width: 100%;
height: 100%;
overflow: hidden;
}
</style>

View File

@@ -0,0 +1,25 @@
<template>
<div class="seller-dashboard-index">
seller-dashboard-index
<div class="view">
<router-view></router-view>
</div>
</div>
</template>
<script lang="ts" setup>
</script>
<style scoped lang="less">
.seller-dashboard-index {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
> .view {
flex: 1;
}
}
</style>