chore: 移除假审批通知与失效菜单路由

This commit is contained in:
2026-10-30 18:35:59 +08:00
parent cd0aa98dc0
commit 415d9d7cbd
3 changed files with 1 additions and 237 deletions
+1 -93
View File
@@ -1,7 +1,7 @@
import request from '@/utils/request';
import type { ApiResult } from '@/api';
import type { User } from '@/api/system/user/model';
import type { UpdatePasswordParam, NoticeResult } from './model';
import type { UpdatePasswordParam } from './model';
import { MODULES_API_URL, SERVER_API_URL } from '@/config/setting';
import { Company } from '@/api/system/company/model';
import { Website } from '@/api/cms/website/model';
@@ -96,95 +96,3 @@ export async function updatePassword(
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询未读通知
*/
export async function getUnreadNotice(): Promise<NoticeResult> {
return {
notice: [
{
color: '#60B2FC',
icon: 'NotificationFilled',
title: '你收到了一封14份新周报',
time: '2020-07-27 18:30:18'
},
{
color: '#F5686F',
icon: 'PushpinFilled',
title: '许经理同意了你的请假申请',
time: '2020-07-27 09:08:36'
},
{
color: '#7CD734',
icon: 'VideoCameraFilled',
title: '陈总邀请你参加视频会议',
time: '2020-07-26 18:30:01'
},
{
color: '#FAAD14',
icon: 'CarryOutFilled',
title: '你推荐的刘诗雨已通过第三轮面试',
time: '2020-07-25 16:38:46'
},
{
color: '#2BCACD',
icon: 'BellFilled',
title: '你的6月加班奖金已发放',
time: '2020-07-25 11:03:31'
}
],
letter: [
{
avatar:
'https://cdn.eleadmin.com/20200609/c184eef391ae48dba87e3057e70238fb.jpg',
title: 'SunSmile 评论了你的日志',
content: '写的不错, 以后多多向你学习~',
time: '2020-07-27 18:30:18'
},
{
avatar:
'https://cdn.eleadmin.com/20200609/948344a2a77c47a7a7b332fe12ff749a.jpg',
title: '刘诗雨 点赞了你的日志',
content: '写的不错, 以后多多向你学习~',
time: '2020-07-27 09:08:36'
},
{
avatar:
'https://cdn.eleadmin.com/20200609/2d98970a51b34b6b859339c96b240dcd.jpg',
title: '酷酷的大叔 评论了你的周报',
content: '写的不错, 以后多多向你学习~',
time: '2020-07-26 18:30:01'
},
{
avatar:
'https://cdn.eleadmin.com/20200609/f6bc05af944a4f738b54128717952107.jpg',
title: 'Jasmine 点赞了你的周报',
content: '写的不错, 以后多多向你学习~',
time: '2020-07-25 11:03:31'
}
],
todo: [
{
status: 0,
title: '刘诗雨的请假审批',
description: '刘诗雨在 07-27 18:30 提交的请假申请'
},
{
status: 1,
title: '第三方代码紧急变更',
description: '需要在 2020-07-27 之前完成'
},
{
status: 2,
title: '信息安全考试',
description: '需要在 2020-07-26 18:30 前完成'
},
{
status: 2,
title: 'EleAdmin发布新版本',
description: '需要在 2020-07-25 11:03 前完成'
}
]
};
}
-119
View File
@@ -1,119 +0,0 @@
// 请参考开发文档配置菜单 https://eleadmin.com/doc/eleadminpro/#/config?id=menu
export default [
{
path: '/assets/server',
component: '/assets/server',
meta: { title: '服务器管理', icon: 'AuditOutlined' }
},
{
path: '/project',
component: '/project',
meta: { title: '项目管理', icon: 'CodeOutlined' }
},
{
path: '/customer',
component: '/customer',
meta: { title: '客户管理', icon: 'CrownOutlined' }
},
{
path: '/content/article',
component: '/content/article',
meta: { title: '文章管理', icon: 'FileSearchOutlined' }
},
{
path: '/content/docs/:id',
component: '/content/docs',
meta: { title: '文档管理', icon: 'ReadOutlined' }
},
{
path: '/task/index',
component: '/task/index',
meta: { title: '任务管理', icon: 'HistoryOutlined' }
},
{
path: '/appstore',
component: '/appstore',
meta: { title: '应用管理', icon: 'AppstoreOutlined' }
},
{
path: '/system',
redirect: '/system/user',
meta: { title: '系统管理', icon: 'SettingOutlined' },
children: [
{
path: '/system/user',
component: '/system/user'
},
{
path: '/system/role',
component: '/system/role',
meta: { title: '角色管理', icon: 'IdcardOutlined' }
},
{
path: '/system/menu',
component: '/system/menu',
meta: { title: '菜单管理', icon: 'AppstoreOutlined' }
},
{
path: '/system/dictionary',
component: '/system/dictionary',
meta: { title: '字典管理', icon: 'ProfileOutlined' }
},
{
path: '/system/organization',
component: '/system/organization'
},
{
path: '/system/file',
component: '/system/file',
meta: { title: '文件管理', icon: 'FolderOutlined' }
},
{
path: '/system/login-record',
component: '/system/login-record',
meta: { title: '登录日志', icon: 'CalendarOutlined' }
},
{
path: '/system/operation-record',
component: '/system/operation-record',
meta: { title: '操作日志', icon: 'FileSearchOutlined' }
},
{
path: '/system/tenant',
component: '/system/tenant',
meta: { title: '租户管理', icon: 'TeamOutlined' }
},
{
path: '/system/setting',
component: '/system/setting',
meta: { title: '系统设置', icon: 'SettingOutlined' }
}
]
},
// 账号中心
{
path: '/user',
hide: true,
redirect: '/user/profile',
meta: { title: '账号中心' },
children: [
{
path: '/user/profile',
component: '/user/profile',
meta: { title: '账号中心', hide: false }
},
{
path: '/user/message',
component: '/user/message',
meta: { title: '我的消息', hide: false }
}
]
},
{
path: '/register',
hide: true,
component: '/passport/register/index.vue',
meta: { title: '免费注册' }
}
];
-25
View File
@@ -20,31 +20,6 @@ export const routes = [
component: () => import('@/views/passport/loginToken/index.vue'),
meta: { title: 'token登录' }
},
// {
// path: '/forget',
// component: () => import('@/views/passport/forget/index.vue'),
// meta: { title: '忘记密码' }
// },
// {
// path: '/wx-work-login',
// component: () => import('@/views/passport/wx-work/index.vue'),
// meta: { title: '企业微信登录' }
// },
// {
// path: '/token-login',
// component: () => import('@/views/passport/token-login/index.vue'),
// meta: { title: '快捷登录' }
// },
// {
// path: '/cms/category/:id',
// component: () => import('@/views/cms/category/preview/index.vue'),
// meta: { title: '文章列表' }
// },
// {
// path: '/cms/article/:id',
// component: () => import('@/views/cms/article/preview/index.vue'),
// meta: { title: '文章详情' }
// },
// 404
{
path: '/:path(.*)*',