|
|
@@ -81,16 +81,16 @@ export default {
|
|
|
devServer: {
|
|
|
proxy: {
|
|
|
'/dr': {
|
|
|
- // target: 'http://192.168.110.13:6001', // 你的后端服务地址
|
|
|
- target: 'http://192.168.110.245:6001',
|
|
|
+ target: 'http://192.168.110.13:6001', // 你的后端服务地址
|
|
|
+ // target: 'http://192.168.110.245:6001',
|
|
|
changeOrigin: true, // 允许跨域
|
|
|
// pathRewrite: {
|
|
|
// '^/dr/api': '' // 可选,用于重写路径
|
|
|
// }
|
|
|
},
|
|
|
'/mqtt': {
|
|
|
- // target: 'ws://192.168.110.13:8083', // MQTT WebSocket 服务地址
|
|
|
- target: 'ws://192.168.110.245:8083',
|
|
|
+ target: 'ws://192.168.110.13:8083', // MQTT WebSocket 服务地址
|
|
|
+ // target: 'ws://192.168.110.245:8083',
|
|
|
changeOrigin: true,
|
|
|
ws: true, // 启用 WebSocket 代理
|
|
|
// pathRewrite: {
|