perf: optimize import file-saver way(#2347)

This commit is contained in:
Serge 2019-09-30 13:14:55 +08:00 committed by 花裤衩
parent 4d2d52ef03
commit 3a08b6e471
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* eslint-disable */ /* eslint-disable */
require('script-loader!file-saver'); import { saveAs } from 'file-saver'
import XLSX from 'xlsx' import XLSX from 'xlsx'
function generateArray(table) { function generateArray(table) {

View File

@ -1,5 +1,5 @@
/* eslint-disable */ /* eslint-disable */
require('script-loader!file-saver'); import { saveAs } from 'file-saver'
import JSZip from 'jszip' import JSZip from 'jszip'
export function export_txt_to_zip(th, jsonData, txtName, zipName) { export function export_txt_to_zip(th, jsonData, txtName, zipName) {