fix: watch open logic lost after build (#3421)

* fix: watch open logic lost after build

* fix: drawer for better understand
This commit is contained in:
xachary 2023-12-16 21:33:44 +08:00 committed by GitHub
parent 404a4720b0
commit 089a98953e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,9 @@
(open) => {
nextTick(() => {
emit('open-change', open);
instance && drawerInstance.emitOpen?.(open, instance.uid);
if (instance && drawerInstance.emitOpen) {
drawerInstance.emitOpen(open, instance.uid);
}
});
},
);