This commit is contained in:
parent
c1e4243ab1
commit
e6ff6ff581
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue