mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
🚨
This commit is contained in:
parent
74bfa2ecd9
commit
4ede229dd0
5 changed files with 19 additions and 19 deletions
|
|
@ -102,14 +102,14 @@ const openFile = (options: IOpenFileOptions) => {
|
|||
if (initData) {
|
||||
const initObj = JSON.parse(initData);
|
||||
if (initObj.rootId === options.rootID || initObj.blockId === options.rootID) {
|
||||
initObj.blockId = options.id
|
||||
initObj.mode = options.mode
|
||||
initObj.blockId = options.id;
|
||||
initObj.mode = options.mode;
|
||||
if (options.zoomIn) {
|
||||
initObj.action = [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS]
|
||||
initObj.action = [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS];
|
||||
} else {
|
||||
initObj.action = options.action
|
||||
initObj.action = options.action;
|
||||
}
|
||||
delete initObj.scrollAttr
|
||||
delete initObj.scrollAttr;
|
||||
item.headElement.setAttribute("data-initdata", JSON.stringify(initObj));
|
||||
item.parent.switchTab(item.headElement);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue