chore: 删除在 ts 编译后永远都不会成立的代码 (#6291)

This commit is contained in:
liaoxuezhi 2023-03-01 19:49:55 +08:00 committed by GitHub
parent 429e8b31ec
commit a76e31be1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View File

@ -1196,10 +1196,6 @@ export default class Form extends React.Component<FormProps, object> {
return values;
})
.catch(reason => {
if (reason instanceof SkipOperation) {
return;
}
onFailed && onFailed(reason, store.errors);
if (throwErrors) {
@ -1563,8 +1559,7 @@ export default class Form extends React.Component<FormProps, object> {
* 2. static: false
* 3.
*/
...(control as Schema).static || isStatic
? {static: true} : {},
...((control as Schema).static || isStatic ? {static: true} : {}),
btnDisabled: disabled || form.loading || form.validating,
onAction: this.handleAction,
onQuery: this.handleQuery,

View File

@ -602,11 +602,7 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
action.reload && this.reloadTarget(action.reload, store.data);
})
.catch(reason => {
if (reason instanceof SkipOperation) {
return;
}
});
.catch(reason => {});
} else if (action.actionType === 'reload') {
action.target && this.reloadTarget(action.target, data);
} else if (action.actionType === 'goto-step') {
@ -878,9 +874,6 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
})
.catch(reason => {
this.dispatchEvent('stepSubmitFail', {error: reason});
if (reason instanceof SkipOperation) {
return;
}
// do nothing
});
} else {