mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
0684145b44
commit
ec4e0c0d14
2 changed files with 10 additions and 2 deletions
|
|
@ -215,6 +215,10 @@ export const openFile = (options: IOpenFileOptions) => {
|
|||
wnd.parent.children.find((item, index) => {
|
||||
if (item.id === wnd.id) {
|
||||
let nextWnd = wnd.parent.children[index + 1];
|
||||
if (!nextWnd) {
|
||||
// wnd 为右侧时,应设置其为目标
|
||||
nextWnd = wnd;
|
||||
}
|
||||
while (nextWnd instanceof Layout) {
|
||||
nextWnd = nextWnd.children[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue