修复 wizard 最后一步跳转没有获取到接口返回数据问题

This commit is contained in:
liaoxuezhi 2019-05-13 20:06:49 +08:00
parent 549af8a2aa
commit a134eaa0a8
1 changed files with 4 additions and 0 deletions

View File

@ -280,6 +280,10 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
},
})
.then(value => {
store.updateData({
...store.data,
...value
});
store.markSaving(false);
if (onFinished && onFinished(value, action) === false) {
// 如果是 false 后面的操作就不执行