This commit is contained in:
Administrator
2024-05-15 15:02:22 +08:00
parent cdd73ee632
commit cd919f8754
86 changed files with 17547 additions and 2 deletions

15
vue/vue.config.js Normal file
View File

@@ -0,0 +1,15 @@
// 跨域配置
module.exports = {
devServer: { //记住别写错了devServer//设置本地默认端口 选填
port: 9876,
proxy: { //设置代理,必须填
'/api': { //设置拦截器 拦截器格式 斜杠+拦截器名字,名字可以自己定
target: 'http://192.168.202.220:9100', //代理的目标地址
changeOrigin: true, //是否设置同源,输入是的
pathRewrite: { //路径重写
'^/api': '' //选择忽略拦截器里面的内容
}
}
}
}
}