// 注: 开发环境(获取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`
获取服务器下载地址
最新推荐文章于 2025-08-31 17:24:33 发布

1268

被折叠的 条评论
为什么被折叠?



