7 lines
204 B
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
import { ref, onMounted, readonly } from 'vue';
export default function isMounted() {
const isMounted = ref(false);
onMounted(() => { isMounted.value = true; });
return readonly(isMounted);
}