diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 1a3e5b20..c6c95e80 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -393,7 +393,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ ] }, { - path: '/trade/order', + path: '/trade', component: Layout, name: 'Order', meta: { @@ -401,13 +401,13 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, children: [ { - path: 'orderDetail/:orderId(\\d+)', // TODO @puhui999:路径合理的是 trade/order/detail + path: 'order/detail/:orderId(\\d+)', component: () => import('@/views/mall/trade/order/detail/index.vue'), - name: 'TradeOrderDetail', // TODO @puhui999:路径合理的是 trade/after-sale/detail + name: 'TradeOrderDetail', meta: { title: '订单详情', icon: '', activeMenu: '/trade/trade/order' } }, { - path: 'afterSaleDetail/:orderId(\\d+)', + path: 'after-sale/detail/:orderId(\\d+)', component: () => import('@/views/mall/trade/afterSale/detail/index.vue'), name: 'TradeAfterSaleDetail', meta: { title: '退款详情', icon: '', activeMenu: '/trade/trade/after-sale' } diff --git a/src/views/mall/trade/order/form/OrderDeliveryForm.vue b/src/views/mall/trade/order/form/OrderDeliveryForm.vue index 6d4a07c4..14f9411d 100644 --- a/src/views/mall/trade/order/form/OrderDeliveryForm.vue +++ b/src/views/mall/trade/order/form/OrderDeliveryForm.vue @@ -34,7 +34,6 @@ import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express' import * as TradeOrderApi from '@/api/mall/trade/order' import { copyValueToTarget } from '@/utils' -// TODO @puhui999:要不 Form 保持和别的模块一样,和 index.vue 放在一个目录下,不作为 components;components 更多要支持给多个模块使用哈。 defineOptions({ name: 'OrderDeliveryForm' }) const { t } = useI18n() // 国际化