mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 07:46:00 +00:00
electron app starting
This commit is contained in:
@@ -18,10 +18,10 @@ export default function saveTabFile(editor, saveAs, folder, format, fileExtensio
|
||||
|
||||
const handleSave = async () => {
|
||||
if (savedFile) {
|
||||
await axiosInstance.post('files/save', { folder: savedFolder || folder, file: savedFile, data, format });
|
||||
await axiosInstance().post('files/save', { folder: savedFolder || folder, file: savedFile, data, format });
|
||||
}
|
||||
if (savedFilePath) {
|
||||
await axiosInstance.post('files/save-as', { filePath: savedFilePath, data, format });
|
||||
await axiosInstance().post('files/save-as', { filePath: savedFilePath, data, format });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user