🐛 flash card zoomin status

This commit is contained in:
Vanessa 2023-10-01 10:49:52 +08:00
parent e8359edebc
commit df487a7c6a
2 changed files with 5 additions and 3 deletions

View file

@ -143,7 +143,7 @@ export const bindCardEvent = (options: {
onGet({
data: response,
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({
data: response,
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],
});
});
};

View file

@ -253,7 +253,9 @@ const getArticle = (edit: Protyle, id: string) => {
size: Constants.SIZE_GET_MAX,
}, getResponse => {
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],
});
});
};