ll
liukangdong
2024-09-29 f6ac139bf416f98c3a3d28f6b1d80e4598bd648f
screen/vite.config.js
@@ -14,5 +14,15 @@
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  }
  },
  server: {
    proxy: {
      "/gateway_interface": {
        target: "http://192.168.0.103:10010",
        // target: "https://xiaoxianlianqi.cn/gateway_interface",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/gateway_interface/, ""),
      },
    },
  },
})