src/utils/util.js
@@ -477,4 +477,16 @@ } } return newObj } } // a链接直接下载 export const aLinkDownloadUtil = (url, name) => { let a = document.createElement('a') a.style.display = 'none' a.href = url a.download = name document.body.appendChild(a) a.click() document.body.removeChild(a) a = null }