项目初始化
This commit is contained in:
9
src/conf/api.conf.ts
Normal file
9
src/conf/api.conf.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 通用API路径配置
|
||||
*/
|
||||
export const apiConf = {
|
||||
/**
|
||||
* 文件上传路径
|
||||
*/
|
||||
fileUpload: ``,
|
||||
};
|
||||
49
src/conf/cache.conf.ts
Normal file
49
src/conf/cache.conf.ts
Normal file
@ -0,0 +1,49 @@
|
||||
/**
|
||||
* 缓存数据键名配置
|
||||
*/
|
||||
export const cacheConf = {
|
||||
/**
|
||||
* App信息
|
||||
*/
|
||||
app: '_app',
|
||||
/**
|
||||
* 环境信息
|
||||
*/
|
||||
env: '_env',
|
||||
/**
|
||||
* 地区信息
|
||||
*/
|
||||
region: '_region',
|
||||
/**
|
||||
* 角色信息
|
||||
*/
|
||||
role: '_role',
|
||||
/**
|
||||
* Token
|
||||
*/
|
||||
token: '_token',
|
||||
/**
|
||||
* 用户信息
|
||||
*/
|
||||
user: '_user',
|
||||
/**
|
||||
* 权限数据
|
||||
*/
|
||||
permission: `_permission`,
|
||||
/**
|
||||
* 最后操作时间
|
||||
*/
|
||||
last_operation_time: '_lpt',
|
||||
/**
|
||||
* 是否显示Tabs栏
|
||||
*/
|
||||
show_tabs_bar: '_stb',
|
||||
/**
|
||||
* 企业信息
|
||||
*/
|
||||
enterprise: '_enterprise',
|
||||
/**
|
||||
* 菜单信息
|
||||
*/
|
||||
menu: '_menu',
|
||||
};
|
||||
48
src/conf/environment.conf.ts
Normal file
48
src/conf/environment.conf.ts
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* @Author: Maple
|
||||
* @Date: 2021-03-22 09:57:14
|
||||
* @LastEditors: Do not edit
|
||||
* @LastEditTime: 2021-03-30 17:29:50
|
||||
* @Description: 全局环境配置信息
|
||||
*/
|
||||
|
||||
/**
|
||||
* 环境配置信息
|
||||
*/
|
||||
export const environmentConf = {
|
||||
// 网易盾ID
|
||||
captchaId: '73aa170bb84a42feb63ec5fe01795d36',
|
||||
// 是否允许不关联企业的时候能否登录
|
||||
allowNoEnterprise: true,
|
||||
/**
|
||||
* 缓存键名配置
|
||||
*/
|
||||
cacheKey: {
|
||||
/**
|
||||
* 环境配置
|
||||
*/
|
||||
environment: '_env',
|
||||
/**
|
||||
* 企业信息
|
||||
*/
|
||||
enterprise: '_enterprise',
|
||||
/**
|
||||
* 地区信息
|
||||
*/
|
||||
region: '_region',
|
||||
/**
|
||||
* 角色信息
|
||||
*/
|
||||
role: '_role',
|
||||
},
|
||||
// 全局通用API配置
|
||||
apiPath: {
|
||||
// 文件上传路径
|
||||
fileUploadUrl: `/scce/pbc/pbc/upload/multipartFile/fileModel`,
|
||||
},
|
||||
pdf: {
|
||||
sourceServer: 'https://scce-cos-obs.obs.cn-south-1.myhuaweicloud.com:443',
|
||||
targetServer: 'https://sce-cos-api-test.380star.com:443',
|
||||
prefix: '/huawei/obs',
|
||||
},
|
||||
};
|
||||
13
src/conf/event.conf.ts
Normal file
13
src/conf/event.conf.ts
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* 全局事件配置名称
|
||||
*/
|
||||
export const eventConf = {
|
||||
/**
|
||||
* 是否显示Tabs栏
|
||||
*/
|
||||
show_tabs_bar: 'STB',
|
||||
/**
|
||||
* 刷新登录状态
|
||||
*/
|
||||
reflesh_login_status: 'LOGIN',
|
||||
};
|
||||
11
src/conf/keys.conf.ts
Normal file
11
src/conf/keys.conf.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
/**
|
||||
* 第三方控件键值
|
||||
*/
|
||||
export const keysConf = {
|
||||
/**
|
||||
* 网易云盾ID
|
||||
*/
|
||||
yidun_capcha_id: `73aa170bb84a42feb63ec5fe01795d36`,
|
||||
};
|
||||
34
src/conf/sys.conf.ts
Normal file
34
src/conf/sys.conf.ts
Normal file
@ -0,0 +1,34 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
/**
|
||||
* 系统关键配置
|
||||
*/
|
||||
export const sysConf = {
|
||||
/**
|
||||
* 应用ID
|
||||
*/
|
||||
appId: ``,
|
||||
/**
|
||||
* 登录路径
|
||||
*/
|
||||
login_url: `/account/login`,
|
||||
/**
|
||||
* 缓存过期时间
|
||||
*/
|
||||
cache_expiration_time: 60 * 60 * 24 * 2,
|
||||
/**
|
||||
* 加密键名
|
||||
*/
|
||||
encrypt_key: `LKJDSKFHFKJKFDS`,
|
||||
/**
|
||||
* 显示Tabs工具栏
|
||||
*/
|
||||
show_tabs_path: [
|
||||
'/tabs/home/index',
|
||||
'/tabs/service/index',
|
||||
'/tabs/industry/index',
|
||||
'/tabs/partner/index',
|
||||
'/tabs/community/index',
|
||||
'/tabs/my/index',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user