The Vue project is packaged and launched to remove the console console printing
1. Install the plug-in
npm install babel-plugin-transform-remove-console
2. Add the following code to babel.config.js
plugins: [
'transform-remove-console'
]
You can comment out these lines of code in the development environment, or there is no console printing in the development environment