Commit baa55e12 authored by qinhaitao's avatar qinhaitao

fix: 🐛 https问题

parent f9ebd5c8
......@@ -203,7 +203,9 @@ export default class StatService {
fileName: `数据统计${startDay.replace(/\//g, '-')}-${endDay.replace(/\//g, '-')}.xlsx`
})
if (result.url) {
result.url = result.url.replace('http', 'https').replace('-internal', '')
result.url = result.url?.startsWith('https')
? result.url.replace('-internal', '')
: result.url.replace('http', 'https').replace('-internal', '')
}
return result
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment