Files
vueadmin/src/config/index.js
2026-01-20 09:43:58 +08:00

52 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export default {
APP_NAME: 'vueadmin',
DASHBOARD_URL: '/dashboard',
// 白名单路由(不需要登录即可访问)
whiteList: ['/login', '/register', '/reset-password'],
//版本号
APP_VER: '1.6.6',
//内核版本号
CORE_VER: '1.6.6',
//接口地址
API_URL: 'https://www.tensent.cn/admin/',
//请求超时
TIMEOUT: 50000,
//TokenName
TOKEN_NAME: 'authorization',
//Token前缀注意最后有个空格如不需要需设置空字符串
TOKEN_PREFIX: 'Bearer ',
//追加其他头
HEADERS: {},
//请求是否开启缓存
REQUEST_CACHE: false,
//语言
LANG: 'zh-cn',
//是否加密localStorage, 为空不加密
//支持多种加密方式: 'AES', 'BASE64', 'DES'
LS_ENCRYPTION: '',
//localStorage加密秘钥位数建议填写8的倍数
LS_ENCRYPTION_key: '2XNN4K8LC0ELVWN4',
//localStorage加密模式AES支持: 'ECB', 'CBC', 'CTR', 'OFB', 'CFB'
LS_ENCRYPTION_mode: 'ECB',
//localStorage加密填充方式AES支持: 'Pkcs7', 'ZeroPadding', 'Iso10126', 'Iso97971'
LS_ENCRYPTION_padding: 'Pkcs7',
//localStorage默认过期时间单位小时0表示永不过期
LS_DEFAULT_EXPIRE: 720, // 30天
//DES加密秘钥必须是8字节
LS_DES_key: '12345678',
}