智慧园区前端大屏
linwe
2025-05-23 d2e2df7c4805cc9c5e4e915202f304e0e9a53758
vite.config.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-25 10:56:27
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-12-01 21:17:55
 * @LastEditTime: 2024-12-26 18:55:57
 * @FilePath: \bigScreen\vite.config.js
 * @Description: 
 * 
@@ -109,25 +109,26 @@
          rewrite: path => path.replace(/^\/panorama/, ''),
        },
        '/zhyq/newMx': {
        '/zhyq-lc/newMx': {
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/zhyq/newMx',
          target: 'https://wrj.shuixiongit.com/zhyq-lc/newMx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyq\/newMx/, ''),
          rewrite: path => path.replace(/^\/zhyq-lc\/newMx/, ''),
        },
        // '/zhyq/mx': {
        //   // target: 'http://localhost',
        //   target: 'https://wrj.shuixiongit.com/zhyq/mx',
        //   changeOrigin: true,
        //   rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
        // },
        '/zhyqapi': {
          // target: 'http://localhost:8082',
          target: 'https://wrj.shuixiongit.com/zhyqapi',
        '/3Dtile/lcmx': {
          target: 'https://wrj.shuixiongit.com/3Dtile/lcmx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyqapi/, ''),
          rewrite: path => path.replace(/^\/3Dtile\/lcmx/, ''),
        },
        '/zhyqhbapi': {
          // target: 'http://localhost:8082',
          target: 'https://wrj.shuixiongit.com/zhyqhbapi',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyqhbapi/, ''),
        },
      },
    },