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 = {