打印数据屏蔽

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

View File

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