From f3f55d2c8851640164518d3aa962ff13897b173a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=93=B6=E4=B8=AD=E6=B2=99?= <464652163@qq.com> Date: Thu, 15 Aug 2024 15:00:46 +0800 Subject: [PATCH] 123 --- src/components/His.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/His.vue b/src/components/His.vue index 01ca14b..c8a84be 100644 --- a/src/components/His.vue +++ b/src/components/His.vue @@ -79,10 +79,10 @@ export default { point_name: props.formData.point_name, } const res = await infoApi.exportHis(parm); - if (res.code == 0) { - ElMessage.success(res.message || "请求成功"); - ctx.emit("dialogClose"); - } + + const url = window.URL.createObjectURL(new Blob([res])); + + window.open(url); } const clearHis = async () => { const parm = {