1 Star 0 Fork 0

krealseu/aneadmin_front

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.umirc.ts 3.77 KB
一键复制 编辑 原始数据 按行查看 历史
krealseu 提交于 2024-11-26 18:46 . chore: update
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: {},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/krealseu/aneadmin_front.git
git@gitee.com:krealseu/aneadmin_front.git
krealseu
aneadmin_front
aneadmin_front
master

搜索帮助