mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:25:48 +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();
|
return doc.open();
|
||||||
}
|
}
|
||||||
if (typeof doc === 'string') {
|
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) {
|
if (got) {
|
||||||
return got.open();
|
return got.open();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user