This commit is contained in:
Daniel 2024-11-30 20:46:33 +08:00
parent 257cf706b6
commit 5dc73d0be6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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);
});