fix: Dialog 和 Drawer 内强制 syncLocation 为 false 避免冲突 (#2698)

This commit is contained in:
吴多益 2021-10-14 10:27:34 +08:00 committed by GitHub
parent 9ef4b6dcf6
commit 4913ff7519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -395,7 +395,8 @@ export default class Dialog extends React.Component<DialogProps> {
affixOffsetTop: 0,
onChange: this.handleFormChange,
onInit: this.handleFormInit,
onSaved: this.handleFormSaved
onSaved: this.handleFormSaved,
syncLocation: false // 弹框中的 crud 一般不需要同步地址栏
};
if (!(body as Schema).type) {

View File

@ -394,7 +394,8 @@ export default class Drawer extends React.Component<DrawerProps> {
popOverContainer: this.getPopOverContainer,
onChange: this.handleFormChange,
onInit: this.handleFormInit,
onSaved: this.handleFormSaved
onSaved: this.handleFormSaved,
syncLocation: false
};
if (schema.type === 'form') {