🐛 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({
|
||||
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],
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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],
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue