fix: 全面修复项目问题
后端修复: - 验证码存储与校验机制 - 订单创建事务+库存扣减 - GetStats字段名错误 - VerifyEmail改为POST - 供应商更新字段白名单 - 文件删除安全检查 - 抽奖安全随机数 - 用户管理CRUD - 订单取消/确认收货 - 工单回复 - Toggle返回新数据 - 移除死代码 前端修复: - 404兜底路由 - 401软跳转 - API层统一 - 面包屑补充banners - 国际化完善 - 购物车并行删除 - 退出清理购物车 - 供应商Dashboard数据 - 工单详情页 - 订单取消/确认收货
This commit is contained in:
@@ -10,9 +10,9 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('../layouts/scheme4/UserLayout.vue'),
|
||||
component: () => import('../layouts/UserLayout.vue'),
|
||||
children: [
|
||||
{ path: '', name: 'Home', component: () => import('../views/scheme4/Home.vue') },
|
||||
{ path: '', name: 'Home', component: () => import('../views/user/Home.vue') },
|
||||
{ path: 'products', name: 'Products', component: () => import('../views/user/Products.vue') },
|
||||
{ path: 'products/:id', name: 'ProductDetail', component: () => import('../views/user/ProductDetail.vue') },
|
||||
{ path: 'cart', name: 'Cart', component: () => import('../views/user/Cart.vue') },
|
||||
@@ -24,6 +24,7 @@ const routes = [
|
||||
{ path: 'lotteries/:id', name: 'LotteryDetail', component: () => import('../views/user/LotteryDetail.vue') },
|
||||
{ path: 'tickets', name: 'Tickets', component: () => import('../views/user/Tickets.vue') },
|
||||
{ path: 'tickets/create', name: 'CreateTicket', component: () => import('../views/user/CreateTicket.vue') },
|
||||
{ path: 'tickets/:id', name: 'TicketDetail', component: () => import('../views/user/TicketDetail.vue') },
|
||||
{ path: 'articles', name: 'Articles', component: () => import('../views/user/Articles.vue') },
|
||||
{ path: 'articles/:id', name: 'ArticleDetail', component: () => import('../views/user/ArticleDetail.vue') },
|
||||
{ path: 'login', name: 'Login', component: () => import('../views/auth/Login.vue'), meta: { guest: true, hideSidebar: true } },
|
||||
@@ -46,6 +47,7 @@ const routes = [
|
||||
{ path: 'tickets', name: 'AdminTickets', component: () => import('../views/admin/Tickets.vue') },
|
||||
{ path: 'settings', name: 'AdminSettings', component: () => import('../views/admin/Settings.vue') },
|
||||
{ path: 'articles', name: 'AdminArticles', component: () => import('../views/admin/Articles.vue') },
|
||||
{ path: 'banners', name: 'AdminBanners', component: () => import('../views/admin/Banners.vue') },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -58,6 +60,11 @@ const routes = [
|
||||
{ path: 'inventory', name: 'SupplierInventory', component: () => import('../views/supplier/Inventory.vue') },
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'NotFound',
|
||||
component: () => import('../views/NotFound.vue'),
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
Reference in New Issue
Block a user