Commit c32f1a23 by 姜雷

修改打印配置

parent 7bf3b36e
const removeConsolePlugin = [];
if (process.env.NODE_ENV === 'production') {
removeConsolePlugin.push('transform-remove-console');
removeConsolePlugin.push([
'transform-remove-console',
{
exclude: ['error', 'warn'],
},
]);
}
module.exports = {
presets: ['@vue/app'],
plugins: removeConsolePlugin,
};
......@@ -31,9 +31,9 @@ const createBaseFetch = config => {
};
} else {
conf.headers = {
...conf.headers,
reqSource: 'pc',
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