mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
73cb6a2112
commit
c7809a7403
1 changed files with 8 additions and 5 deletions
|
|
@ -301,11 +301,14 @@ export const JSONToLayout = (isStart: boolean) => {
|
||||||
// https://github.com/siyuan-note/siyuan/pull/7086
|
// https://github.com/siyuan-note/siyuan/pull/7086
|
||||||
const openId = getSearch("id");
|
const openId = getSearch("id");
|
||||||
if (openId) {
|
if (openId) {
|
||||||
|
// 启动时 layout 中有该文档,该文档还原会在此之后,因此需有延迟
|
||||||
|
setTimeout(() => {
|
||||||
openFileById({
|
openFileById({
|
||||||
id: openId,
|
id: openId,
|
||||||
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
|
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
|
||||||
zoomIn: getSearch("focus") === "1"
|
zoomIn: getSearch("focus") === "1"
|
||||||
});
|
});
|
||||||
|
}, Constants.TIMEOUT_BLOCKLOAD);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue