更新订单和售后退款详情页面路由

This commit is contained in:
puhui999 2023-08-31 16:39:48 +08:00
parent 688dad319e
commit 264a29e451
2 changed files with 4 additions and 5 deletions

View File

@ -393,7 +393,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
] ]
}, },
{ {
path: '/trade/order', path: '/trade',
component: Layout, component: Layout,
name: 'Order', name: 'Order',
meta: { meta: {
@ -401,13 +401,13 @@ const remainingRouter: AppRouteRecordRaw[] = [
}, },
children: [ children: [
{ {
path: 'orderDetail/:orderId(\\d+)', // TODO @puhui999路径合理的是 trade/order/detail path: 'order/detail/:orderId(\\d+)',
component: () => import('@/views/mall/trade/order/detail/index.vue'), 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' } 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'), component: () => import('@/views/mall/trade/afterSale/detail/index.vue'),
name: 'TradeAfterSaleDetail', name: 'TradeAfterSaleDetail',
meta: { title: '退款详情', icon: '', activeMenu: '/trade/trade/after-sale' } meta: { title: '退款详情', icon: '', activeMenu: '/trade/trade/after-sale' }

View File

@ -34,7 +34,6 @@ import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express'
import * as TradeOrderApi from '@/api/mall/trade/order' import * as TradeOrderApi from '@/api/mall/trade/order'
import { copyValueToTarget } from '@/utils' import { copyValueToTarget } from '@/utils'
// TODO @puhui999 Form index.vue componentscomponents 使
defineOptions({ name: 'OrderDeliveryForm' }) defineOptions({ name: 'OrderDeliveryForm' })
const { t } = useI18n() // const { t } = useI18n() //