usePermission
反应式 权限 API。权限 API 提供的工具可让开发者在权限方面实现更好的用户体验。
¥Reactive Permissions API. The Permissions API provides the tools to allow developers to implement a better user experience as far as permissions are concerned.
示例
用法
¥Usage
js
import { usePermission } from '@vueuse/core'
const microphoneAccess = usePermission('microphone')