This commit is contained in:
qsc 2023-10-25 13:56:00 +08:00
parent 6833edab1e
commit ff712229ba
1 changed files with 2 additions and 4 deletions

View File

@ -18,8 +18,7 @@ export default function render(props) {
text = t('upload');
}
}
return (_jsx(Button, {
type: type, size: size, block: block, disabled: disabled, onClick: async () => {
return (_jsx(Button, { type: type, size: size, block: block, disabled: disabled, onClick: async () => {
if (oakExecutable) {
if (beforeCommit) {
const beforeCommitResult = await beforeCommit();
@ -39,6 +38,5 @@ export default function render(props) {
afterCommit();
}
}
}, ...buttonProps, children: text
}));
}, ...buttonProps, children: text }));
}