You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
641 B
19 lines
641 B
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
devServer:{
|
|
host: 'localhost',
|
|
port: 8080,
|
|
https: false,
|
|
proxy:{
|
|
'/api': { //设置拦截器 拦截器格式 斜杠+拦截器名字,名字可以自己定
|
|
target: 'http://47.122.59.26:8083', //代理的目标地址
|
|
changeOrigin: true, //是否设置同源,输入是的
|
|
pathRewrite: { //路径重写
|
|
'^/api': '' //选择忽略拦截器里面的内容
|
|
}
|
|
}
|
|
}
|
|
},
|
|
transpileDependencies: true
|
|
})
|