// 注: 开发环境(获取webpack代理地址)、生产环境(获取线上服务器地址)
export function getServerPath () {
const http = 'http://'
return process.env.NODE_ENV === 'development' ? `${dev.proxyTable['/'].target}` : `${http}${window.location.host}`
}
// api
const DOWNLOAD_EXCEL= `${ getServerPath () }/download/excel`
获取服务器下载地址
最新推荐文章于 2023-11-04 11:58:30 发布