mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🐛 flash card zoomin status
This commit is contained in:
parent
e8359edebc
commit
df487a7c6a
2 changed files with 5 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ export const bindCardEvent = (options: {
|
||||||
onGet({
|
onGet({
|
||||||
data: response,
|
data: response,
|
||||||
protyle: editor.protyle,
|
protyle: editor.protyle,
|
||||||
action: [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
|
action: response.data.rootID === response.data.id ? [Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -485,7 +485,7 @@ const nextCard = (options: {
|
||||||
onGet({
|
onGet({
|
||||||
data: response,
|
data: response,
|
||||||
protyle: options.editor.protyle,
|
protyle: options.editor.protyle,
|
||||||
action: [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
|
action: response.data.rootID === response.data.id ? [Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,9 @@ const getArticle = (edit: Protyle, id: string) => {
|
||||||
size: Constants.SIZE_GET_MAX,
|
size: Constants.SIZE_GET_MAX,
|
||||||
}, getResponse => {
|
}, getResponse => {
|
||||||
onGet({
|
onGet({
|
||||||
data: getResponse, protyle: edit.protyle, action: [Constants.CB_GET_ALL, Constants.CB_GET_HTML]
|
data: getResponse,
|
||||||
|
protyle: edit.protyle,
|
||||||
|
action: getResponse.data.rootID === getResponse.data.id ? [Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue