Skip to content

disableDebug

禁用右键、调试快捷键、控制台检测

引入版本

0.45.0

Demo

ts
import { disableDebug } from '@wyfex/iutils'

const clearDebugGuard = disableDebug('禁用调试文案', msg => {
  console.warn(msg)
})

onUnmounted(() => {
  clearDebugGuard()
})

基于 MIT 许可发布