mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:17:54 +08:00
commit
5d8867943a
@ -562,17 +562,16 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
if (onFinished && onFinished(values, action) === false) {
|
||||
return values;
|
||||
}
|
||||
|
||||
|
||||
resetAfterSubmit && store.reset(onReset);
|
||||
clearPersistDataAfterSubmit && store.clearPersistData();
|
||||
|
||||
if (action.redirect || redirect) {
|
||||
env.updateLocation(filter(action.redirect || redirect, store.data));
|
||||
} else if (action.reload || reload) {
|
||||
this.reloadTarget(action.reload || reload, store.data);
|
||||
}
|
||||
|
||||
resetAfterSubmit && store.reset(onReset);
|
||||
|
||||
clearPersistDataAfterSubmit && store.clearPersistData();
|
||||
|
||||
return values;
|
||||
})
|
||||
.catch(reason => {
|
||||
|
@ -402,7 +402,6 @@ export const FormStore = ServiceStore
|
||||
function getPersistData() {
|
||||
self.persistData = true;
|
||||
let data = localStorage.getItem(location.pathname + self.path);
|
||||
|
||||
if (data) {
|
||||
self.updateData(JSON.parse(data));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user