打印数据屏蔽

This commit is contained in:
朱浩 2025-01-15 16:43:12 +08:00
parent 121cff7c2b
commit 9c2c31e4b7
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ VMdPreview.use(githubTheme, {
});
(function () {
//!['development', 'mock'].includes(process.env.NODE_ENV)&&
if (import.meta.env.VITE_SHOW_DEV_TOOLS==='false') {
['log', 'warn', 'error', 'info'].forEach((item) => {
console[item] = (function (func) {