From 88dc73abdcb36dd8ce328709e892c7e084bab4f8 Mon Sep 17 00:00:00 2001 From: wangwenhua <12345678> Date: Tue, 21 Oct 2025 05:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/subsystem/scene/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)