1
This commit is contained in:
33
nx/config/index.js
Normal file
33
nx/config/index.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import { get } from 'lodash'
|
||||
// 开发环境配置
|
||||
export let version
|
||||
// 接口前缀
|
||||
export const apiPath = import.meta.env.NX_API_PATH
|
||||
// if (process.env.NODE_ENV === 'development') {
|
||||
// console.log(import.meta.env)
|
||||
// baseUrl = import.meta.env.NX_DEV_BASE_URL
|
||||
// } else {
|
||||
|
||||
// }
|
||||
version = import.meta.env.NX_VERSION
|
||||
// if (typeof baseUrl === 'undefined') {
|
||||
// console.error('请检查.env配置文件是否存在')
|
||||
// } else {
|
||||
// }
|
||||
|
||||
export const apiCrypto = {
|
||||
type: 'sm4', //aes,des,sm4
|
||||
aesKey: 'okK2ScfBoB0PzjTLVIlzp9z0R0CuPndE',
|
||||
desKey: 'wMpDsJjgCL4sXMbY',
|
||||
sm4Key: 'pMjhravzPN0TKm0j'
|
||||
}
|
||||
// 客户端密钥
|
||||
export const clientSecret = ' 2E1TFEkR8YaOcLhp'
|
||||
// 附件前缀
|
||||
export const attachmentKey = 'lims_attachment'
|
||||
export default {
|
||||
apiPath,
|
||||
apiCrypto,
|
||||
clientSecret,
|
||||
attachmentKey
|
||||
}
|
||||
Reference in New Issue
Block a user