From c49d413fe39ee6cb9062f6fa915a3d203933a73a Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 17 一月 2024 16:40:19 +0800 Subject: [PATCH] 设备样式修改 --- src/api/plan/customerorder.js | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/src/api/plan/customerorder.js b/src/api/plan/customerorder.js index 3c851b7..452c5aa 100644 --- a/src/api/plan/customerorder.js +++ b/src/api/plan/customerorder.js @@ -401,20 +401,8 @@ return request({ url: '/mes/plan/customerOrder/package', method: 'post', - params: data, + data: data, responseType: 'blob' - }).then((response) => { - // 澶勭悊杩斿洖鐨勬枃浠舵祦 - const blob = response.data - const link = document.createElement('a') - link.href = URL.createObjectURL(blob) - link.download = data.originalFileName - document.body.appendChild(link) - link.click() - window.setTimeout(function() { - URL.revokeObjectURL(blob) - document.body.removeChild(link) - }, 0) }) } -- Gitblit v1.9.3