联调接口
This commit is contained in:
@@ -17,13 +17,15 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0', // 监听所有本地 IP
|
||||
// port:9995,
|
||||
https: false,//是否启动https
|
||||
proxy: {
|
||||
// 简单代理配置
|
||||
'/api': {
|
||||
target: 'http://localhost:3000', // 目标服务器地址
|
||||
}
|
||||
}
|
||||
// proxy: {
|
||||
// // 简单代理配置
|
||||
// '/api': {
|
||||
// target: 'http://localhost:3000', // 目标服务器地址
|
||||
// }
|
||||
// }
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user