From aab1fc7d45daa88ed76b7743cb000d42f9820afd Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Mon, 20 Feb 2023 15:47:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=89=A9=E8=81=94=E7=BD=91=E5=8D=A1=E5=AF=BC=E5=87=BA=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot-card/cardManagement.ts | 2 +- src/views/device/Product/Detail/index.vue | 2 +- src/views/iot-card/CardManagement/Export.vue | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/iot-card/cardManagement.ts b/src/api/iot-card/cardManagement.ts index 0a4f53d5..4c038b9f 100644 --- a/src/api/iot-card/cardManagement.ts +++ b/src/api/iot-card/cardManagement.ts @@ -97,7 +97,7 @@ export const _import = (configId: any, params: any) => server.get(`/network/card * @param format 类型 xlsx、csv * @param params */ -export const _export = (format: string, data: any) => server.post(`/network/card/download.${format}/_query`, data, 'blob'); +export const _export = (format: string, data: any) => server.post(`/network/card/download.${format}/_query`, data, { responseType: 'blob' }); /** * 验证iccid diff --git a/src/views/device/Product/Detail/index.vue b/src/views/device/Product/Detail/index.vue index b36b3214..90bec07c 100644 --- a/src/views/device/Product/Detail/index.vue +++ b/src/views/device/Product/Detail/index.vue @@ -2,7 +2,7 @@