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