This commit is contained in:
Vanessa 2023-09-17 11:09:14 +08:00
parent c1e4243ab1
commit e6ff6ff581

View file

@ -473,7 +473,7 @@ export const exportMd = (id: string) => {
fetchPost("/api/template/docSaveAsTemplate", {
id,
name,
name: inputElement.value,
overwrite: false
}, response => {
if (response.code === 1) {
@ -481,7 +481,7 @@ export const exportMd = (id: string) => {
confirmDialog(window.siyuan.languages.export, window.siyuan.languages.exportTplTip, () => {
fetchPost("/api/template/docSaveAsTemplate", {
id,
name,
name: inputElement.value,
overwrite: true
}, resp => {
if (resp.code === 0) {
@ -493,7 +493,6 @@ export const exportMd = (id: string) => {
}
showMessage(window.siyuan.languages.exportTplSucc);
});
dialog.destroy();
});
}