feat: 微客宝H5客户端 - 基础架构+核心页面
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import { ref, watch } from "vue";
|
||||
function useLazyRender(show) {
|
||||
const inited = ref(false);
|
||||
watch(
|
||||
show,
|
||||
(value) => {
|
||||
if (value) {
|
||||
inited.value = value;
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
return (render) => () => inited.value ? render() : null;
|
||||
}
|
||||
export {
|
||||
useLazyRender
|
||||
};
|
||||
Reference in New Issue
Block a user