Commit c32f1a23 by 姜雷

修改打印配置

parent 7bf3b36e
const removeConsolePlugin = []; const removeConsolePlugin = [];
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
removeConsolePlugin.push('transform-remove-console'); removeConsolePlugin.push([
'transform-remove-console',
{
exclude: ['error', 'warn'],
},
]);
} }
module.exports = { module.exports = {
presets: ['@vue/app'], presets: ['@vue/app'],
plugins: removeConsolePlugin,
}; };
...@@ -31,9 +31,9 @@ const createBaseFetch = config => { ...@@ -31,9 +31,9 @@ const createBaseFetch = config => {
}; };
} else { } else {
conf.headers = { conf.headers = {
...conf.headers,
reqSource: 'pc', reqSource: 'pc',
ip: ip, ip: ip,
...conf.headers,
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment