打印数据屏蔽

This commit is contained in:
朱浩 2025-01-15 16:42:10 +08:00
parent f8f0646bde
commit 2ad1ae4946
2 changed files with 18 additions and 4 deletions

View File

@ -95,7 +95,7 @@ export const addFileToSC = (params) => {
params params
}) })
} }
//EOS生成表单上传的签名
export const createSignature = (data) => { export const createSignature = (data) => {
return request({ return request({
url: '/eos/createSignature', url: '/eos/createSignature',
@ -103,7 +103,7 @@ export const createSignature = (data) => {
data data
}) })
} }
//EOS生成本地上传的临时签名
export const sessionToken = () => { export const sessionToken = () => {
return request({ return request({
url: '/eos/sessionToken', url: '/eos/sessionToken',

View File

@ -55,6 +55,20 @@ VMdPreview.use(githubTheme, {
Hljs: hljs, Hljs: hljs,
}); });
(function () {
if (!['development', 'mock'].includes(process.env.NODE_ENV)&&import.meta.env.VITE_SHOW_DEV_TOOLS==='true') {
['log', 'warn', 'error', 'info'].forEach((item) => {
console[item] = (function (func) {
const res = localStorage.getItem('debug');
if (res === 'GMV_desk') {
return func;
}
return function () {};
})(console[item]);
});
}
})()
app.use(router) app.use(router)
.use(store) .use(store)
.use(ElementPlus, { locale: zhLocale }) .use(ElementPlus, { locale: zhLocale })