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: { 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')
link.href = URL.createObjectURL(blob) link.href = URL.createObjectURL(blob)