Procházet zdrojové kódy

优化机器人屏幕菜单交互体验

zmj před 1 týdnem
rodič
revize
90b12a94fd
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      vite.config.js

+ 2 - 1
vite.config.js

@@ -15,7 +15,8 @@ export default defineConfig({
     proxy: {
     proxy: {
       // 使用 /dev-api 前缀,与 RobotSpineWeb 保持一致
       // 使用 /dev-api 前缀,与 RobotSpineWeb 保持一致
       '/dev-api': {
       '/dev-api': {
-        target: 'http://192.168.0.30:8080',
+        //target: 'http://192.168.0.30:8080',
+        target: 'http://localhost:8080',
         changeOrigin: true,
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/dev-api/, '')
         rewrite: (path) => path.replace(/^\/dev-api/, '')
       }
       }