JS生成A标签自动跳转

const a = document.createElement('a')

const url = body.data['fileUrl']
a.href = url
a.click()
window.URL.revokeObjectURL(url)