liudong
2024-08-17 7499bd3e9549a1813f8830a216f81b6fff0f8f4a
config/vite.config.dev.ts
@@ -15,7 +15,7 @@
        '/base': {
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          // target: 'http://192.168.20.158:8089',
          //  target: 'http://192.168.20.158:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
@@ -23,17 +23,17 @@
          // secure: false
        },
        '/api': {
          target: 'http://192.168.20.116:8089',
          // target: 'http://192.168.20.158:8089',
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          //  target: 'http://192.168.20.158:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
        },
        '/api/v1': {
          target: 'http://192.168.20.116:8089',
          // target: 'http://192.168.20.158:8089',
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          //  target: 'http://192.168.20.158:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),