其实插件都不需要安装,main.js最后添加 if (process.env.NODE_ENV === ‘production’) { console.log = () => {} } (在别的地方看到的。记录一下 )