修改vue.config.js的配置
config
// https://webpack.js.org/configuration/devtool/#development
.when(process.env.NODE_ENV === 'development',
// config => config.devtool('cheap-source-map')
// source-map
config => config.devtool('source-map')
)