Compare commits
No commits in common. "e95e5fe60f62b8b5dae15dd4daf2a4ee00f54a01" and "abf7a67d079d3947afadd000f3b2310b6b21bb2e" have entirely different histories.
e95e5fe60f
...
abf7a67d07
|
|
@ -278,12 +278,12 @@ 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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user