feat: 添加开发者工具保护功能,防止调试

This commit is contained in:
mubai576
2025-11-30 10:30:16 +08:00
parent 6a17a0735d
commit 0e210b90a2
2 changed files with 164 additions and 0 deletions
+6
View File
@@ -28,6 +28,9 @@ import ElementIcons from '@/plugins/svgicon';
// permission control
import './permission';
// 开发者工具保护
import { initDevToolsProtection } from '@/utils/devtools-protection';
// 国际化
import i18n from '@/lang/index';
@@ -55,3 +58,6 @@ app.use(plugins);
directive(app);
app.mount('#app');
// 初始化开发者工具保护(仅生产环境)
initDevToolsProtection();