feat(router): 调整菜单

This commit is contained in:
浅念
2025-07-22 17:08:13 +08:00
parent 2ffe0c9753
commit fc4de02582
3 changed files with 8 additions and 10 deletions
+1 -3
View File
@@ -20,7 +20,7 @@ export const menuService = {
ElMessage.error('暂无系统菜单权限')
return { menuList: [] }
}
// 处理菜单数据
const menuList = menuData.map((route: any) => menuDataToRouter(route))
// 验证处理后的菜单列表
@@ -28,12 +28,10 @@ export const menuService = {
ElMessage.error('菜单数据处理失败')
return { menuList: [] }
}
// 模拟接口延迟
await new Promise((resolve) => setTimeout(resolve, delay))
return { menuList }
} catch (error) {
console.error('获取菜单失败:', error)
throw error instanceof Error ? error : new Error('获取菜单失败')
@@ -33,7 +33,7 @@
import { useWorktabStore } from '@/store/modules/worktab'
import { useSettingStore } from '@/store/modules/setting'
// Store refs
// Store refs1
const { pageTransition, containerWidth, refresh } = storeToRefs(useSettingStore())
const { keepAliveExclude } = storeToRefs(useWorktabStore())
+6 -6
View File
@@ -54,13 +54,13 @@ export enum RoutesAlias {
Crmpchome = '/crmpc/home', // crm首页
Crmphighseas = '/crmpc/highseas', // crm公海
Crmpcustomer = '/crmpc/customer', // crm客户
CrmpcustomerAdd = '/crmpc/customer/Add',//客户添加
CrmpcustomerEdit = '/crmpc/customer/Edit',//客户编辑
CrmpcustomerShow = '/crmpc/customer/Show',//客户详情
CrmpcustomerFollowadd = '/crmpc/customer/Followadd',//添加跟进
recycle = '/crmpc/recycle',//回收站
CrmpcustomerAdd = '/crmpc/customer/Add', //客户添加
CrmpcustomerEdit = '/crmpc/customer/Edit', //客户编辑
CrmpcustomerShow = '/crmpc/customer/Show', //客户详情
CrmpcustomerFollowadd = '/crmpc/customer/Followadd', //添加跟进
recycle = '/crmpc/recycle', //回收站
UserCenter = '/system/user-center', // 用户中心
inquirySystem = '/admin/inquiry_system', // 询单系统
inquirySystem = '/admin/inquiry_system' // 询单系统
}
// 主页路由