feat(router): 新增携程管理模块路由

- 添加携程管理模块的路由配置,包括携程账户和携程订单两个子路由
- 重命名 Walmart 路由模块,将其改为 CTrip
- 更新相关视图组件的路径,从 card-walmart-c-trip 改为 card-c-trip-info
This commit is contained in:
danial
2025-03-08 12:03:25 +08:00
parent 92679b841b
commit ac4abb7699
10 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';
const CTrip: AppRouteRecordRaw = {
path: '/cTrip',
name: 'cTrip',
component: DEFAULT_LAYOUT,
meta: {
locale: '携程管理',
requiresAuth: true,
icon: 'icon-safe',
order: 1
},
children: [
{
path: 'account',
name: 'cTripAccount',
component: () => import('@/views/card-c-trip-info/account/index.vue'),
meta: {
locale: '携程账户',
requiresAuth: true,
roles: ['*']
}
},
{
path: 'order',
name: 'cTripOrder',
component: () => import('@/views/card-c-trip-info/order/index.vue'),
meta: {
locale: '携程订单',
requiresAuth: true,
roles: ['*']
}
}
]
};
export default CTrip;

View File

@@ -1,7 +1,7 @@
import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';
const JDAccount: AppRouteRecordRaw = {
const Walmart: AppRouteRecordRaw = {
path: '/walmart',
name: 'walamrtMgt',
component: DEFAULT_LAYOUT,
@@ -45,4 +45,4 @@ const JDAccount: AppRouteRecordRaw = {
]
};
export default JDAccount;
export default Walmart;