Console.log fails in the console

throughout my vue project, the console.log of all components has failed. Using alert is not a problem with the browser. Other files can print out things. Excuse me, what may be the cause?
Direct printing can be printed, but not in export default

.
Apr.30,2021

  1. have you ever tried direct console.log? If it doesn't work, it's the setting of your console.
  2. if it is not 1, please use the developer tool to check the vue component of the page to see if console.log is still in the generated. If not, console.log has been completely removed in the build section.

module.exports = {
  plugins: [
    new UglifyJsPlugin({
      uglifyOptions: {
        compress: {
          drop_console: true
        }
      }
    })
  ]
}

change drop_console to false

Menu