指南
链接
核心
插件
主题
参考文献中的安装状态。
¥Mounted state in ref.
源代码playground (beta)
¥Usage
import { useMounted } from '@vueuse/core' const isMounted = useMounted()
这本质上是以下内容的简写:
¥Which is essentially a shorthand of:
const isMounted = ref(false) onMounted(() => { isMounted.value = true })