js通过后端接口下载xls文件

download(e) { // 下载文件
      const link = document.createElement('a')
      link.style.display = 'none'
      link.href = `${window.config.baseUrl}FileService/File/Download?filePath=${e.path}&fileName=${e.fileName}`
      document.body.appendChild(link)
      link.click()
 },

posted @ 2021-11-15 14:51  Re。  阅读(167)  评论(0)    收藏  举报