Compare commits

..

2 Commits

Author SHA1 Message Date
wangwenhua
e95e5fe60f 系统名称 2025-10-21 05:08:52 +08:00
wangwenhua
88dc73abdc 系统名称 2025-10-21 05:07:47 +08:00

View File

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