mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
ebca9c64e1
commit
b3b67832b0
1 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
|
||||||
} else if (window.siyuan.config.keymap.general.globalSearch.custom === hotkey) {
|
} else if (window.siyuan.config.keymap.general.globalSearch.custom === hotkey) {
|
||||||
hPath = localData.hPath || "";
|
hPath = localData.hPath || "";
|
||||||
idPath = localData.idPath || [];
|
idPath = localData.idPath || [];
|
||||||
|
// 历史原因,2.5.2 之前为 string https://github.com/siyuan-note/siyuan/issues/6902
|
||||||
|
if (typeof idPath === "string") {
|
||||||
|
idPath = [idPath];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let range: Range;
|
let range: Range;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue