mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
fa14fdc2e6
1 changed files with 5 additions and 1 deletions
|
|
@ -339,11 +339,15 @@ ${data.shorthandContent}
|
|||
id: item
|
||||
}, (response) => {
|
||||
this.data[response.data.oId] = response.data;
|
||||
let md = response.data.shorthandMd;
|
||||
if ("" === md && "" === response.data.shorthandContent && "" != response.data.shorthandURL) {
|
||||
md = "[" + response.data.shorthandTitle + "](" + response.data.shorthandURL + ")";
|
||||
}
|
||||
fetchPost("/api/filetree/createDoc", {
|
||||
notebook: toNotebook[0],
|
||||
path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"),
|
||||
title: replaceFileName(response.data.shorthandTitle),
|
||||
md: response.data.shorthandMd,
|
||||
md: md,
|
||||
}, () => {
|
||||
this.remove(item);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue