Initial commit
This commit is contained in:
121
src/config/menu.ts
Normal file
121
src/config/menu.ts
Normal file
@@ -0,0 +1,121 @@
|
||||
// 请参考开发文档配置菜单 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',
|
||||
meta: { title: '用户管理', icon: 'TeamOutlined' }
|
||||
},
|
||||
{
|
||||
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',
|
||||
meta: { title: '组织机构', icon: 'BankOutlined' }
|
||||
},
|
||||
{
|
||||
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: '免费注册' }
|
||||
}
|
||||
];
|
||||
76
src/config/setting.ts
Normal file
76
src/config/setting.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
// 租户ID
|
||||
export const TENANT_ID = import.meta.env.VITE_TENANT_ID;
|
||||
// appSecret
|
||||
export const APP_SECRET = 'ffd6eee985af45e4a75098422d1decbb';
|
||||
|
||||
export const domain = 'https://www.gxwebsoft.com';
|
||||
// 主节点
|
||||
export const SERVER_API_URL = import.meta.env.VITE_SERVER_URL;
|
||||
// 模块节点
|
||||
export const MODULES_API_URL = import.meta.env.VITE_API_URL;
|
||||
export const OPEN_API_URL = 'https://open.gxwebsoft.com/api';
|
||||
// 文件服务器地址
|
||||
export const FILE_SERVER = 'https://file.wsdns.cn';
|
||||
|
||||
/**
|
||||
* 以下配置一般不需要修改
|
||||
*/
|
||||
// 接口地址
|
||||
export const API_BASE_URL: string = import.meta.env.VITE_API_URL;
|
||||
export const PROJECT_NAME: string = import.meta.env.VITE_APP_NAME;
|
||||
// 不显示侧栏的路由
|
||||
export const HIDE_SIDEBARS: string[] = ['/home'];
|
||||
// 不显示页脚的路由
|
||||
export const HIDE_FOOTERS: string[] = [
|
||||
'/system/dictionary',
|
||||
'/system/organization',
|
||||
'/form/advanced'
|
||||
];
|
||||
// 页签同路由不同参数可重复打开的路由
|
||||
export const REPEATABLE_TABS: string[] = [];
|
||||
// 不需要登录的路由
|
||||
export const WHITE_LIST: string[] = [
|
||||
'/login',
|
||||
'/register',
|
||||
'/forget',
|
||||
'/wx-work-login',
|
||||
'/token-login',
|
||||
'/home'
|
||||
];
|
||||
// 开启 KeepAlive 后仍然不需要缓存的路由地址
|
||||
export const KEEP_ALIVE_EXCLUDES: string[] = [];
|
||||
// 直接指定菜单数据
|
||||
// export const USER_MENUS = menu;
|
||||
export const USER_MENUS: Array<any> | undefined = undefined;
|
||||
// 首页名称, 为空则取第一个菜单的名称
|
||||
export const HOME_TITLE: string | undefined = undefined;
|
||||
// 首页路径, 为空则取第一个菜单的地址
|
||||
export const HOME_PATH: string | undefined = undefined;
|
||||
// 外层布局的路由地址
|
||||
export const LAYOUT_PATH = '/';
|
||||
// 刷新路由的路由地址
|
||||
export const REDIRECT_PATH = '/redirect';
|
||||
// 开启页签栏是否缓存组件
|
||||
//export const TAB_KEEP_ALIVE = !import.meta.env.DEV;
|
||||
export const TAB_KEEP_ALIVE = true;
|
||||
// token 传递的 header 名称
|
||||
export const TOKEN_HEADER_NAME = 'Authorization';
|
||||
// token 存储的名称
|
||||
export const TOKEN_STORE_NAME = 'access_token';
|
||||
// 主题配置存储的名称
|
||||
export const THEME_STORE_NAME = 'theme:';
|
||||
// i18n 缓存的名称
|
||||
export const I18N_CACHE_NAME = 'i18n-lang';
|
||||
// 是否开启国际化功能
|
||||
export const I18N_ENABLE = true;
|
||||
// 高德地图 key , 自带的只能用于测试, 正式项目请自行到高德地图官网申请 key
|
||||
export const MAP_KEY = '8191620da39a742c6f18f010c084c772';
|
||||
// 高德地图 安全密钥
|
||||
export const MAP_CODE = '7225174a116c1c44e1bd7a177d1787d5';
|
||||
// EleAdminPro 授权码, 自带的只能用于演示, 正式项目请更换为自己的授权码
|
||||
export const LICENSE_CODE =
|
||||
'dk9mcwJyetRWQlxWRiojIzJCLi8mcQ5Wa4ojI0NWZqJWd6ICZpJCL0kjNwl1NnhENahnIvl2cyVmdiwiIiATMuEjI6IibQf0NW==';
|
||||
// 缩略图前缀
|
||||
export const FILE_THUMBNAIL = FILE_SERVER + '/thumbnail';
|
||||
// 文件下载前缀
|
||||
export const FILE_DOWNLOAD = FILE_SERVER + '/download';
|
||||
Reference in New Issue
Block a user