From 0ac39693485409ea830997422fdd3d3fddb61ad9 Mon Sep 17 00:00:00 2001 From: zouzhibing Date: Thu, 4 Aug 2022 17:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/exprotExcel.ts | 3 +-- src/views/excel/upload-excel.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/exprotExcel.ts b/src/utils/exprotExcel.ts index dff5db5..86fa9dc 100644 --- a/src/utils/exprotExcel.ts +++ b/src/utils/exprotExcel.ts @@ -1,5 +1,4 @@ -const ExcelJS = require("exceljs"); - +import ExcelJS from 'exceljs' const autoWidthAction = (val,width=10)=>{ if (val == null) { width = 10; diff --git a/src/views/excel/upload-excel.vue b/src/views/excel/upload-excel.vue index afddb88..c45f337 100644 --- a/src/views/excel/upload-excel.vue +++ b/src/views/excel/upload-excel.vue @@ -25,7 +25,7 @@