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();
|
||||
}
|
||||
|
||||
removeEditorWindow(resourceName: string) {
|
||||
const index = this.windows.findIndex(d => (d.resource?.name === resourceName && d.title));
|
||||
removeEditorWindow(resourceName: string, title: string) {
|
||||
const index = this.windows.findIndex(d => (d.resource?.name === resourceName && d.title === title));
|
||||
this.remove(index);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user