输出日志

This commit is contained in:
hongchao 2025-02-14 13:17:36 +08:00
parent 885484d487
commit 31b55c8150
1 changed files with 6 additions and 0 deletions

View File

@ -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,