mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
feat: support opening document with id
This commit is contained in:
parent
152a24d655
commit
3f7c0cd519
@ -214,7 +214,7 @@ export class Project {
|
||||
return doc.open();
|
||||
}
|
||||
if (typeof doc === 'string') {
|
||||
const got = this.documents.find((item) => item.fileName === doc);
|
||||
const got = this.documents.find((item) => item.fileName === doc || item.id === doc);
|
||||
if (got) {
|
||||
return got.open();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user