代码拉取完成,页面将自动刷新
import { defineConfig } from "@umijs/max";
const proxy_url = "http://localhost:3000";
export default defineConfig({
antd: {},
access: {},
model: {},
esbuildMinifyIIFE: true,
// base: "/admin",
initialState: {},
request: {
dataField: "",
},
layout: {
title: "Ane Admin",
logo: "/icon_inverted.svg",
},
routes: [
{
path: "/",
redirect: "/home",
},
{
name: "首页",
path: "/home",
component: "./Home",
},
{
path: "/auth2",
layout: false,
routes: [
{
name: "用户登陆",
path: "login",
component: "./Auth/login",
},
],
},
{
name: "Cms",
path: "cms/manager",
// access: "cms",
// component: "./Cms",
routes: [
{
name: "Cms",
path: "",
component: "./Cms"
},
{
name: "文章",
path: "article",
icon: "",
access: "cms_article",
routes: [
{
name: "文章",
path: "",
icon: "",
component: "./Cms/Article/index.tsx",
},
{
name: "文章",
path: "editor",
component: "./Cms/Article/editor.tsx",
hideInMenu: true,
},
{
name: "回收站",
path: "recycle",
component: "./Cms/Article/recycle.tsx",
hideInMenu: true,
},
]
},
{
name: "分类",
path: "category",
component: "./Cms/Category.tsx",
access: "cms_category_list"
},
]
},
{
name: "系统",
path: "admin",
routes: [{
name: "系统管理",
path: "system",
routes: [
{
name: "用户管理",
path: "user",
access: "sys_user",
component: "./system/user",
},
{
name: "角色管理",
path: "role",
component: "./system/role",
},
{
name: "部门管理",
path: "dept",
component: "./system/dept",
},
{
name: "岗位管理",
path: "post",
component: "./system/post",
},
{
name: "资源管理",
path: "resource",
component: "./system/resource",
},
{
name: "字典管理",
path: "dcit",
component: "./system/dict",
},
],
},
{
name: "数据管理",
path: "datamanage",
component: "./developing.tsx",
},
{
name: "日志管理",
path: "log",
access: "sys_log",
routes: [
{
name: "操作日志",
path: "operate",
component: "@/pages/system/log/operate.tsx",
},
{
name: "登录日志",
path: "login",
component: "@/pages/system/log/login.tsx",
},
],
},
{
name: "服务监控",
path: "monitor",
access: "sys_monitor",
component: "./monitor",
},
{
name: "个人中心",
path: "account",
component: "./account",
}]
},
],
npmClient: "yarn",
proxy: {
"/api/": {
target: proxy_url,
changeOrigin: true,
// 'pathRewrite': { '^/api': '' },
},
"/auth/": {
target: proxy_url,
changeOrigin: true,
// 'pathRewrite': { '^/api': '' },
},
"/file/": {
target: proxy_url,
changeOrigin: true,
// 'pathRewrite': { '^/api': '' },
},
},
tailwindcss: {},
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。