changes
This commit is contained in:
@@ -403,7 +403,7 @@ export default defineNuxtPlugin(() => {
|
||||
};
|
||||
|
||||
//======================Export===============================
|
||||
const exportExcel = function (data, filename, fields) {
|
||||
const exportExcel = async function (data, filename, fields) {
|
||||
var _filename = filename + ".xlsx";
|
||||
let list = [];
|
||||
data.map((v) => {
|
||||
@@ -414,8 +414,9 @@ export default defineNuxtPlugin(() => {
|
||||
});
|
||||
list.push(ele);
|
||||
});
|
||||
var XLSX = require("xlsx");
|
||||
//workBook class
|
||||
|
||||
const XLSX = await import("xlsx");
|
||||
// WorkBook class
|
||||
function Workbook() {
|
||||
if (!(this instanceof Workbook)) return new Workbook();
|
||||
this.SheetNames = [];
|
||||
|
||||
Reference in New Issue
Block a user