vue-element-admin中如何打断点
1、vue.config.js中加一行 devtool: ‘source-map’,
configureWebpack: {
devtool: 'source-map',
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
},
参考:https://cn.vuejs.org/v2/cookbook/debugging-in-vscode.html#在浏览器中展示源代码