主题
usePermission
响应式 Permissions API。Permissions 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
ts
import { usePermission } from '@vueuse/core'
const microphoneAccess = usePermission('microphone')