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
-2
View File
@@ -28,12 +28,10 @@ export const menuService = {
ElMessage.error('菜单数据处理失败') ElMessage.error('菜单数据处理失败')
return { menuList: [] } return { menuList: [] }
} }
// 模拟接口延迟 // 模拟接口延迟
await new Promise((resolve) => setTimeout(resolve, delay)) await new Promise((resolve) => setTimeout(resolve, delay))
return { menuList } return { menuList }
} catch (error) { } catch (error) {
console.error('获取菜单失败:', error) console.error('获取菜单失败:', error)
throw error instanceof Error ? error : new Error('获取菜单失败') throw error instanceof Error ? error : new Error('获取菜单失败')
@@ -33,7 +33,7 @@
import { useWorktabStore } from '@/store/modules/worktab' import { useWorktabStore } from '@/store/modules/worktab'
import { useSettingStore } from '@/store/modules/setting' import { useSettingStore } from '@/store/modules/setting'
// Store refs // Store refs1
const { pageTransition, containerWidth, refresh } = storeToRefs(useSettingStore()) const { pageTransition, containerWidth, refresh } = storeToRefs(useSettingStore())
const { keepAliveExclude } = storeToRefs(useWorktabStore()) const { keepAliveExclude } = storeToRefs(useWorktabStore())
+1 -1
View File
@@ -60,7 +60,7 @@ export enum RoutesAlias {
CrmpcustomerFollowadd = '/crmpc/customer/Followadd', //添加跟进 CrmpcustomerFollowadd = '/crmpc/customer/Followadd', //添加跟进
recycle = '/crmpc/recycle', //回收站 recycle = '/crmpc/recycle', //回收站
UserCenter = '/system/user-center', // 用户中心 UserCenter = '/system/user-center', // 用户中心
inquirySystem = '/admin/inquiry_system', // 询单系统 inquirySystem = '/admin/inquiry_system' // 询单系统
} }
// 主页路由 // 主页路由