打印数据屏蔽
This commit is contained in:
parent
2ad1ae4946
commit
121cff7c2b
|
@ -56,7 +56,7 @@ VMdPreview.use(githubTheme, {
|
||||||
});
|
});
|
||||||
|
|
||||||
(function () {
|
(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) => {
|
['log', 'warn', 'error', 'info'].forEach((item) => {
|
||||||
console[item] = (function (func) {
|
console[item] = (function (func) {
|
||||||
const res = localStorage.getItem('debug');
|
const res = localStorage.getItem('debug');
|
||||||
|
|
Loading…
Reference in New Issue