1 Star 0 Fork 0

正在加载中/demo5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.umirc.ts 5.54 KB
一键复制 编辑 原始数据 按行查看 历史
正在加载中 提交于 2023-08-27 20:31 . 1
import { defineConfig } from 'umi';
export default defineConfig({
routes: [
// {
// path:"/",
// component:"@/pages",
// access:'管理员',
// routes: [
// { path: '/', name: "首页", component: '@/pages/home', icon: "HomeOutlined" },
// { path: '/user', name: "用户管理", component: '@/pages/user', icon: "UserOutlined" },
// { path: '/userdetails', component: '@/pages/userdetail' },
// { path: '/addemp', component: '@/pages/system/addemp' },
// { path: '/epxq', component: '@/pages/epxq' },
// { path: '/order', name: "订单管理", component: '@/pages/order', icon: "ProfileOutlined" },
// { path: '/EvidencePreservation', name: "存证管理", component: '@/pages/ep', icon: "CopyrightOutlined" },
// {
// path: '/all',
// name: "综合管理",
// icon: "UnorderedListOutlined",
// routes: [
// { path: 'bundle', name: "套餐管理", component: '@/pages/all/bundle', icon: "GiftOutlined" },
// { path: 'problem', name: "问题管理", component: '@/pages/all/problem', icon: "QuestionCircleOutlined" },
// { path: 'about', name: "关于我们", component: '@/pages/all/about' },
// { path: 'service', name: "服务协议", component: '@/pages/all/service' },
// { path: 'help', name: "帮助与文档", component: '@/pages/all/help' },
// ],
// },
// {
// path: '/system',
// name: "系统设置",
// icon: "SettingOutlined",
// routes: [
// { path: 'employee', name: "员工管理", component: '@/pages/system/employee' },
// { path: 'role', name: "角色管理", component: '@/pages/system/role' },
// { path: 'addrole', component: '@/pages/system/addrole' },
// { path: 'menu', name: "菜单管理", component: '@/pages/system/menu' },
// { path: 'addmenu', component: '@/pages/system/addmenu' },
// { path: 'account', name: "账户设置", component: '@/pages/system/account' },
// { path: 'operation', name: "操作日志", component: '@/pages/system/operation' },
// ],
// },
// ],
// },
// {
// path:"/",
// component:"@/pages",
// access:'普通员工',
// routes: [
// { path: '/', name: "首页", component: '@/pages/home', icon: "HomeOutlined" },
// { path: '/user', name: "用户管理", component: '@/pages/user', icon: "UserOutlined" },
// { path: '/userdetails', component: '@/pages/userdetail' },
// { path: '/addemp', component: '@/pages/system/addemp' },
// { path: '/epxq', component: '@/pages/epxq' },
// { path: '/order', name: "订单管理", component: '@/pages/order', icon: "ProfileOutlined" },
// { path: '/EvidencePreservation', name: "存证管理", component: '@/pages/ep', icon: "CopyrightOutlined" }
// ],
// },
// { path: '/', component: '@/pages/login', redirect: "/login" },
// { path: '/login', component: '@/pages/login' },
// {
// path: '/home', name: "首页", component: '@/pages/home', icon: "HomeOutlined", wrappers: [
// '@/wrappers',
// ],
// },
{ path: '/', name: "首页", component: '@/pages/home', icon: "HomeOutlined",},
{ path: '/user', name: "用户管理", component: '@/pages/user', icon: "UserOutlined" },
{ path: '/userdetails', component: '@/pages/userdetail' },
{ path: '/addemp', component: '@/pages/system/addemp' },
{ path: '/epxq', component: '@/pages/epxq' },
{ path: '/order', name: "订单管理", component: '@/pages/order', icon: "ProfileOutlined" },
{ path: '/EvidencePreservation', name: "存证管理", component: '@/pages/ep', icon: "CopyrightOutlined" },
{
path: '/all',
name: "综合管理",
icon: "UnorderedListOutlined",
routes: [
{ path: 'bundle', name: "套餐管理", component: '@/pages/all/bundle', icon: "GiftOutlined" },
{ path: 'problem', name: "问题管理", component: '@/pages/all/problem', icon: "QuestionCircleOutlined" },
{ path: 'about', name: "关于我们", component: '@/pages/all/about' },
{ path: 'service', name: "服务协议", component: '@/pages/all/service' },
{ path: 'help', name: "帮助与文档", component: '@/pages/all/help' },
],
},
{
path: '/system',
name: "系统设置",
icon: "SettingOutlined",
routes: [
{ path: 'employee', name: "员工管理", component: '@/pages/system/employee' },
{ path: 'role', name: "角色管理", component: '@/pages/system/role' },
{ path: 'addrole', component: '@/pages/system/addrole' },
{ path: 'menu', name: "菜单管理", component: '@/pages/system/menu' },
{ path: 'addmenu', component: '@/pages/system/addmenu' },
{ path: 'account', name: "账户设置", component: '@/pages/system/account' },
{ path: 'operation', name: "操作日志", component: '@/pages/system/operation' },
],
},
],
fastRefresh: {},
layout: {
name: '版权存证管理后台',
logo: "https://www.axured.cn/assets/axurefiles/cd1bba2356076c2843e405e9e753b8f7_942/images/%E7%B3%BB%E7%BB%9F%E6%A1%86%E6%9E%B6/u1117.png",
locale: true,
layout: 'side',
include: ['/admin/**'],
pageTitleRender: false, // 隐藏页面标题
},
// access: '管理员',
// access: (route: any, user: any) => {
// // 返回 true 表示有权限访问,返回 false 表示无权限访问
// },
// mfsu: {}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cuichengkun/demo5.git
git@gitee.com:cuichengkun/demo5.git
cuichengkun
demo5
demo5
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385