dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api': {
target: 'http://class.wangdoukeji.com', //目标地址
changeOrigin: true, //允许跨域
pathRewrite: {
'^/api': ''
}
}
},
}
config>index.js也配置了啊,为什么还是访问localhost:3000?