fix : 长时间无响应弹窗出现后,10秒微操作,关闭弹窗
This commit is contained in:
@@ -33,10 +33,14 @@ onMounted(() => {
|
|||||||
state.resolve = options.resolve;
|
state.resolve = options.resolve;
|
||||||
popup.value.open();
|
popup.value.open();
|
||||||
});
|
});
|
||||||
|
uni.$on('hide-global-popup',()=>{
|
||||||
|
popup.value.close()
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
uni.$off('show-global-popup');
|
uni.$off('show-global-popup');
|
||||||
|
uni.$off('hide-global-popup');
|
||||||
});
|
});
|
||||||
|
|
||||||
const onConfirm = () => {
|
const onConfirm = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user