卖家
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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, // 保持对象堆叠顺序
|
||||
|
||||
@@ -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"),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
13
src/views/SellerDashboard/BrandProfile/index.vue
Normal file
13
src/views/SellerDashboard/BrandProfile/index.vue
Normal 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>
|
||||
25
src/views/SellerDashboard/index.vue
Normal file
25
src/views/SellerDashboard/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user