A:前端增加资料库页面

This commit is contained in:
jimmy committed 2025-06-16 07:13:08 +08:00
1 parent 76d747bbd9
commit bc0053e051
31 files changed
+2364 -204

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
/**
* Time:2024/8/30 下午2:21 50
* Name:app.ts
* Path:src/constants
* ProjectName:utopia-front-vue
* Author:charlatans
*
* Il n'ya qu'un héroïsme au monde :
* c'est de voir le monde tel qu'il est et de l'aimer.
*/
const app = {
/**
* 生产
*/
PRODUCTION: 'production',
/**
* 开发
*/
DEVELOPMENT: 'development',
/**
* 是否是生产环境【默认是】
*/
IS_PRODUCTION: true,
/**
* 是否展示生成路由
*/
IS_SHOW_GENERATE_ROUTER: false
}
export default app
@@ -0,0 +1,59 @@
/**
* Time:2024/8/30 下午2:28 44
* Name:logUtil.ts
* Path:src/constants
* ProjectName:utopia-front-vue
* Author:charlatans
*
* Il n'ya qu'un héroïsme au monde :
* c'est de voir le monde tel qu'il est et de l'aimer.
*/
/**
* 日志级别
*/
const level = {
error: 0,
warn: 1,
info: 2,
http: 3,
verbose: 4,
debug: 5,
silly: 6
}
/**
* 日志工具类常量
*/
const logUtil = {
/**
* 日志级别
*/
level: level,
ERROR: 'error',
WARN: 'warn',
INFO: 'info',
HTTP: 'http',
VERBOSE: 'verbose',
DEBUG: 'debug',
SILLY: 'silly'
}
export type Color =
'primary'
| 'success'
| 'info'
| 'warning'
| 'danger'
| 'error';
export const COLOR_MAP: Record<Color, string> = {
primary: '#2d8cf0',
success: '#19be6b',
info: '#909399',
warning: '#ff9900',
danger: '#35495E',
error: '#FF0000'
}
export default { logUtil, COLOR_MAP }