代码拉取完成,页面将自动刷新
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: {}
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。