阶段四:完成 React Feature 化和异步状态修复
This commit is contained in:
1 parent
4227e3dd56
commit
e92549da48
176 files changed
+849
-650
No files matched your search
@@ -15,6 +15,7 @@ export const startRuleSubmission = (state: RuleSubmitState): RuleSubmitState =>
|
||||
|
||||
// finishRuleSubmission 将保存请求收口为成功或失败结果。
|
||||
export const finishRuleSubmission = (state: RuleSubmitState, succeeded: boolean): RuleSubmitState => ({
|
||||
...state,
|
||||
submitting: false,
|
||||
result: succeeded ? 'success' : 'failure',
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user