mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
f49ebee0e8
commit
ba41c7db05
2 changed files with 2 additions and 2 deletions
|
|
@ -300,7 +300,7 @@ 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 !== null) {
|
if (openId) {
|
||||||
openFileById({
|
openFileById({
|
||||||
id: openId,
|
id: openId,
|
||||||
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
|
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ export const initFramework = () => {
|
||||||
initEditorName();
|
initEditorName();
|
||||||
if (getOpenNotebookCount() > 0) {
|
if (getOpenNotebookCount() > 0) {
|
||||||
const openId = getSearch("id");
|
const openId = getSearch("id");
|
||||||
if (openId !== null) {
|
if (openId) {
|
||||||
openMobileFileById(openId,
|
openMobileFileById(openId,
|
||||||
getSearch("focus") === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
|
getSearch("focus") === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue