Compare commits
2 Commits
abf7a67d07
...
e95e5fe60f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e95e5fe60f | ||
|
|
88dc73abdc |
|
|
@ -278,12 +278,12 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
downloadExcel1() {
|
downloadExcel1() {
|
||||||
this.$http({
|
this.axios({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: '/scenario/battleConsume/downloadExcel1',
|
url: '/downloadExcel1',
|
||||||
responseType: 'blob'
|
responseType: 'blob'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
const blob = new Blob([res.data], {
|
const blob = new Blob([res], {
|
||||||
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