mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
添加 isAlive 检测
This commit is contained in:
parent
2ef3830e85
commit
227887ae04
@ -371,7 +371,7 @@ export default class Dialog extends React.Component<DialogProps> {
|
||||
|
||||
handleExited() {
|
||||
const {lazySchema, store, statusStore} = this.props;
|
||||
statusStore?.resetAll();
|
||||
statusStore && isAlive(statusStore) && statusStore.resetAll();
|
||||
if (isAlive(store)) {
|
||||
store.reset();
|
||||
store.setEntered(false);
|
||||
|
@ -430,7 +430,7 @@ export default class Drawer extends React.Component<DrawerProps> {
|
||||
|
||||
handleExited() {
|
||||
const {lazySchema, store, statusStore} = this.props;
|
||||
statusStore?.resetAll();
|
||||
statusStore && isAlive(statusStore) && statusStore.resetAll();
|
||||
if (isAlive(store)) {
|
||||
store.reset();
|
||||
store.setEntered(false);
|
||||
|
Loading…
Reference in New Issue
Block a user