This commit is contained in:
Vanessa 2023-08-12 00:04:10 +08:00
parent 0684145b44
commit ec4e0c0d14
2 changed files with 10 additions and 2 deletions

View file

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