url.conf.js
let isProduct = process.env.NODE_ENV !== "development" // 判断是否为生成环境
const URL = isProduct ? `http://${location.hostname}` : '/api'
module.exports = URL
url.conf.js
let isProduct = process.env.NODE_ENV !== "development" // 判断是否为生成环境
const URL = isProduct ? `http://${location.hostname}` : '/api'
module.exports = URL