const downloadFile = async(id,name) =>{ const res = await…
Jump to turn (10)
- 1const downloadFile = async(id,name) =>{ const res = await api1.get(“downloadfile
- 2click is not defined
- 3可以下载了,但是点击下载后报了一个这样的错误quasar.esm.js:4783 Uncaught TypeError: Cannot read propert
- 4一样的,还是报这个错
- 5Vue is not defined
- 6可是下载下来后说不支持这种格式
- 7const downloadFile = async(id,name) =>{ const response = await api1.get("downloa
- 8const downloadFile = async(id,name) =>{ const response = await api1.get("downloa
- 9如何把base64转为blob
- 10base64提供下载
- User
const downloadFile = async(id,name) =>{ const res = await api1.get(“download_file”,{params:{“fileID”:id,“encode”:“files/3e6aa1c7-daf8-5199-92a4-1ab846a8c3be/32ee4db0-527e-57b4-b313-3217c3b6c298\”+name}}) const url = window.URL.createObjectURL(res); const link = document.createElement(“a”); link.href = url; link.setAttribute(“download”,name); document.body.appendChild(click); link.click(); document.body.remove(click); console.log(res) }我想下载文件,但是报了一个这样的错TypeError: Failed to execute ‘createObjectURL’ on ‘URL’: Overload resolution failed.
- Assistant