输出日志
This commit is contained in:
parent
885484d487
commit
31b55c8150
|
|
@ -527,14 +527,20 @@ const onDialogClose_2 = () => {}
|
|||
const onFileChange = (fileList: any) => {
|
||||
addAndEditForm.value.fileInfoTempList = []
|
||||
const origin = window.location.origin
|
||||
console.log('获取orgin数据', origin)
|
||||
const isProd = origin.indexOf('sgwpdm.ah.sgcc.com.cn') > -1
|
||||
console.log('获取isProd数据', isProd)
|
||||
const fileListTemp = fileList.map((e: any) => {
|
||||
console.log('111111', e)
|
||||
let testUrl = ''
|
||||
console.log('输出env.VITE_API_URL', import.meta.env.VITE_API_URL)
|
||||
if (import.meta.env.VITE_API_URL == '/proxyApi') {
|
||||
console.log('走入公司测试环境----------', )
|
||||
testUrl = e.url // 公司-测试环境
|
||||
} else {
|
||||
console.log('走入宏源测试环境----------', )
|
||||
testUrl = origin + '/ahbns/' + e.url // 宏源-测试环境
|
||||
console.log('输出testUrl----------', testUrl)
|
||||
}
|
||||
return {
|
||||
fileName: e.name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue