在 vue.config.js 中配置 然后运行项目
const path = require('path')
const resolve =_path=>path.resolve(_path)
module.exports = {
configureWebpack: {
resolve: {
alias: {
'@': resolve('src'),
}
}
},