mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
fix: removeEditorWindow does not compare title
This commit is contained in:
parent
c3d75b27da
commit
9fd28efd0e
@ -192,8 +192,8 @@ export class Workspace implements IWorkspace {
|
|||||||
this.emitChangeWindow();
|
this.emitChangeWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
removeEditorWindow(resourceName: string) {
|
removeEditorWindow(resourceName: string, title: string) {
|
||||||
const index = this.windows.findIndex(d => (d.resource?.name === resourceName && d.title));
|
const index = this.windows.findIndex(d => (d.resource?.name === resourceName && d.title === title));
|
||||||
this.remove(index);
|
this.remove(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user