module.exports = {
publicPath: "./",
//webpack配置
configureWebpack: {
//关闭 webpack 的性能提示
performance: {
hints:false
}
},
devServer: {
open: true,
proxy: {
'/jt': {
target: 'http://cz-jietong***.net',
changeOrigin: true,
ws: true, //是否代理websockets
pathRewrite: {
'^/jt': ''
}
},
}
},
}
上图为:vue.config.js
Vue.prototype.base={
"jt":"/jt",
}
然后打包部署