diff --git a/src/views/subsystem/scene/index.vue b/src/views/subsystem/scene/index.vue index d12b7c6..a0cc1a9 100644 --- a/src/views/subsystem/scene/index.vue +++ b/src/views/subsystem/scene/index.vue @@ -277,14 +277,15 @@ 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)