业务更名为撞车并切换crash路由

用户可见文案与页面/API路径改为撞车与crash,保留mohong表与权限码兼容;移动端入口去掉租/撞图标。
This commit is contained in:
yml2213
2026-07-16 21:19:35 +08:00
parent 8b637cf499
commit a4189db4ca
38 changed files with 232 additions and 179 deletions
+14 -9
View File
@@ -16,27 +16,32 @@ export const publicRoutes: RouteRecordRaw[] = [
name: 'listing-detail',
component: () => import('@/features/listings/views/ListingDetailView.vue'),
},
// 摸大红 PC 端;移动端访问会被守卫重写到 /m/mohong*
// 撞车 PC 端;移动端访问会被守卫重写到 /m/crash*
{
path: '/mohong',
name: 'mohong-list',
path: '/crash',
name: 'crash-list',
component: () => import('@/features/mohong/views/MohongListView.vue'),
},
{
path: '/mohong/orders',
name: 'mohong-orders',
path: '/crash/orders',
name: 'crash-orders',
component: () => import('@/features/mohong/views/MohongOrdersView.vue'),
meta: { requiresAuth: true },
},
{
path: '/mohong/orders/:id',
name: 'mohong-order-detail',
path: '/crash/orders/:id',
name: 'crash-order-detail',
component: () => import('@/features/mohong/views/MohongOrderDetailView.vue'),
meta: { requiresAuth: true },
},
{
path: '/mohong/:id',
name: 'mohong-detail',
path: '/crash/:id',
name: 'crash-detail',
component: () => import('@/features/mohong/views/MohongDetailView.vue'),
},
// 旧路径兼容
{ path: '/mohong', redirect: '/crash' },
{ path: '/mohong/orders', redirect: '/crash/orders' },
{ path: '/mohong/orders/:id', redirect: to => `/crash/orders/${to.params.id}` },
{ path: '/mohong/:id', redirect: to => `/crash/${to.params.id}` },
]