Jeecg-boot/jeecg-uniapp-master/common/service/config.service.js

16 lines
368 B
Java
Raw Normal View History

2024-10-20 14:28:53 +00:00
let BASE_URL = ''
if (process.env.NODE_ENV == 'development') {
BASE_URL = 'http://127.0.0.1:8080/jeecg-boot' // 开发环境
} else {
BASE_URL = 'http://ngtools.cn:8080/jeecg-boot' // 生产环境
}
let staticDomainURL = BASE_URL + '/sys/common/static';
const configService = {
apiUrl: BASE_URL,
staticDomainURL: staticDomainURL
};
export default configService