mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 04:33:57 +00:00
export fix
This commit is contained in:
@@ -12,7 +12,7 @@ export async function exportQuickExportFile(dataName, reader, format, columnMap
|
|||||||
let pureFileName;
|
let pureFileName;
|
||||||
if (electron) {
|
if (electron) {
|
||||||
const filters = [{ name: format.label, extensions: [format.extension] }];
|
const filters = [{ name: format.label, extensions: [format.extension] }];
|
||||||
filePath = electron.showSaveDialog({
|
filePath = await electron.showSaveDialog({
|
||||||
filters,
|
filters,
|
||||||
defaultPath: `${dataName}.${format.extension}`,
|
defaultPath: `${dataName}.${format.extension}`,
|
||||||
properties: ['showOverwriteConfirmation'],
|
properties: ['showOverwriteConfirmation'],
|
||||||
@@ -23,6 +23,8 @@ export async function exportQuickExportFile(dataName, reader, format, columnMap
|
|||||||
pureFileName = resp.fileName;
|
pureFileName = resp.fileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!filePath) return;
|
||||||
|
|
||||||
const script = new ScriptWriter();
|
const script = new ScriptWriter();
|
||||||
|
|
||||||
const sourceVar = script.allocVariable();
|
const sourceVar = script.allocVariable();
|
||||||
|
|||||||
Reference in New Issue
Block a user