Explorar el Código

chore(dev-env): configure mqtt information for development environment

sw hace 1 mes
padre
commit
cf26c94df9
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      config/dev.ts

+ 4 - 1
config/dev.ts

@@ -10,13 +10,16 @@ export default {
     quiet: false,
     stats: true,
   },
+  defineConstants: {
+    MQTT_BROKER_URL_FROM_WEBPACK: '"ws://192.168.1.132:8083/mqtt"',
+  },
   mini: {},
   h5: {
     publicPath: '/',
     devServer: {
       proxy: {
         '/dr': {
-          target: 'http://101.43.219.60:7700', // 你的后端服务地址
+          target: 'http://192.168.1.132:6001', // 你的后端服务地址
           changeOrigin: true, // 允许跨域
           // pathRewrite: {
           //   '^/dr/api': '' // 可选,用于重写路径