重粒子的运行轨迹

Compiling ...
baryon.cpp
baryon.cpp(1) : warning C0000: all glory is fleeing

导航

post文件下载

 this.$http({
          method: 'post',
          url: '/file/download',
          responseType: 'blob',
          data: JSON.stringify(this.theDocument)
        }).then(response => {
          let headers = response.headers
          let _blob = new Blob([response.data], {
            type: headers['Content-Type']
          })
          let _link = document.createElement('a')
          _link.href = window.URL.createObjectURL(_blob)
          _link.download = this.theDocument.thename
          _link.click()
        })

posted on 2018-08-16 22:52  重粒子  阅读(202)  评论(0编辑  收藏  举报