mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: Dialog 和 Drawer 内强制 syncLocation 为 false 避免冲突 (#2698)
This commit is contained in:
parent
9ef4b6dcf6
commit
4913ff7519
@ -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) {
|
||||
|
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user