feat:【antd】mall 发布界面,独立目录

This commit is contained in:
YunaiV
2025-10-22 00:21:00 +08:00
parent a7b9292b8d
commit b5874bd0cd
9 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ const routes: RouteRecordRaw[] = [
title: '商品添加',
activePath: '/mall/product/spu',
},
component: () => import('#/views/mall/product/spu/modules/form.vue'),
component: () => import('#/views/mall/product/spu/form/index.vue'),
},
{
path: String.raw`spu/edit/:id(\d+)`,
@@ -27,7 +27,7 @@ const routes: RouteRecordRaw[] = [
title: '商品编辑',
activePath: '/mall/product/spu',
},
component: () => import('#/views/mall/product/spu/modules/form.vue'),
component: () => import('#/views/mall/product/spu/form/index.vue'),
},
{
path: String.raw`spu/detail/:id(\d+)`,

View File

@@ -62,4 +62,4 @@ const getPropertyList = (spu: MallSpuApi.Spu): PropertyAndValues[] => {
export { getPropertyList };
// 导出组件
export { default as SkuList } from './sku-list.vue';
export { default as SkuList } from './modules/sku-list.vue';

View File

@@ -20,11 +20,11 @@ import {
useInfoFormSchema,
useOtherFormSchema,
useSkuFormSchema,
} from './form-data';
} from './data';
import { getPropertyList } from './index';
import ProductAttributes from './product-attributes.vue';
import ProductPropertyAddForm from './product-property-add-form.vue';
import SkuList from './sku-list.vue';
import ProductAttributes from './modules/product-attributes.vue';
import ProductPropertyAddForm from './modules/product-property-add-form.vue';
import SkuList from './modules/sku-list.vue';
const spuId = ref<number>();
const { params, name } = useRoute();

View File

@@ -1,6 +1,6 @@
<!-- 商品发布 - 库存价格 - 属性列表 -->
<script lang="ts" setup>
import type { PropertyAndValues } from './index';
import type { PropertyAndValues } from '../index';
import type { MallPropertyApi } from '#/api/mall/product/property';

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { Ref } from 'vue';
import type { PropertyAndValues, RuleConfig } from './index';
import type { PropertyAndValues, RuleConfig } from '../index';
import type { MallSpuApi } from '#/api/mall/product/spu';

View File

@@ -4,7 +4,7 @@ import { Page } from '@vben/common-ui';
<template>
<Page>
<!-- TODO @xingyu待开发 -->
<!-- TODO @puhui999详情界面 -->
<div>detail</div>
</Page>
</template>