mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-10 18:58:50 +01:00
This commit is contained in:
parent
5402eeef56
commit
c5294371c9
5 changed files with 154 additions and 165 deletions
|
|
@ -29,6 +29,9 @@ export const getDisplayName = (filePath: string, basename = true, removeSY = fal
|
|||
};
|
||||
|
||||
export const isLocalPath = (link: string) => {
|
||||
if (!link) {
|
||||
return false;
|
||||
}
|
||||
return link.startsWith("assets/") || link.startsWith("file://");
|
||||
};
|
||||
|
||||
|
|
@ -93,7 +96,7 @@ export const movePathTo = async (notebookId: string, path: string, focus = true)
|
|||
k: inputElement.value
|
||||
}, (data) => {
|
||||
let fileHTML = "";
|
||||
data.data.forEach((item: { boxIcon:string, box: string, hPath: string, path: string }) => {
|
||||
data.data.forEach((item: { boxIcon: string, box: string, hPath: string, path: string }) => {
|
||||
if (item.path === pathPosix().dirname(path) + "/" || item.path === path) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue