Compare commits

..

No commits in common. "e95e5fe60f62b8b5dae15dd4daf2a4ee00f54a01" and "abf7a67d079d3947afadd000f3b2310b6b21bb2e" have entirely different histories.

View File

@ -278,13 +278,13 @@ export default {
}, },
methods: { methods: {
downloadExcel1() { downloadExcel1() {
this.axios({ this.$http({
method: 'get', method: 'get',
url: '/downloadExcel1', url: '/scenario/battleConsume/downloadExcel1',
responseType: 'blob' responseType: 'blob'
}).then(res => { }).then(res => {
const blob = new Blob([res], { const blob = new Blob([res.data], {
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
}) })
const link = document.createElement('a') const link = document.createElement('a')
link.href = URL.createObjectURL(blob) link.href = URL.createObjectURL(blob)