mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Dialog: close method may cause error (#841)
This commit is contained in:
parent
f060c0e59d
commit
91f44010e7
@ -57,7 +57,9 @@ Dialog.confirm = options => Dialog({
|
||||
});
|
||||
|
||||
Dialog.close = () => {
|
||||
instance.value = false;
|
||||
if (instance) {
|
||||
instance.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.setDefaultOptions = options => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user