feat: 微客宝H5客户端 - 基础架构+核心页面
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import { inject, watch } from "vue";
|
||||
const POPUP_TOGGLE_KEY = /* @__PURE__ */ Symbol();
|
||||
function onPopupReopen(callback) {
|
||||
const popupToggleStatus = inject(POPUP_TOGGLE_KEY, null);
|
||||
if (popupToggleStatus) {
|
||||
watch(popupToggleStatus, (show) => {
|
||||
if (show) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
export {
|
||||
POPUP_TOGGLE_KEY,
|
||||
onPopupReopen
|
||||
};
|
||||
Reference in New Issue
Block a user