智慧园区前端大屏
shuishen
2025-09-15 17a81d641608545682e3f79f7c6090cac48fe81a
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: 2025-01-12 01:00:49
 * @FilePath: \bigScreen\vite.config.js
 * @Description: 
 * 
@@ -102,6 +102,12 @@
          rewrite: path => path.replace(/^\/zhyq3Dtile/, ''),
        },
        '/3Dtile/rcmx': {
          target: 'https://wrj.shuixiongit.com/3Dtile/rcmx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/3Dtile\/rcmx/, ''),
        },
        '/panorama': {
          // target: 'http://localhost',
          target: 'http://vr.jxpskj.com:180',
@@ -109,25 +115,31 @@
          rewrite: path => path.replace(/^\/panorama/, ''),
        },
        '/zhyq/newMx': {
        '/zhyq-rc/newMx': {
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/zhyq/newMx',
          target: 'https://wrj.shuixiongit.com/zhyq-rc/newMx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyq\/newMx/, ''),
          rewrite: path => path.replace(/^\/zhyq-rc\/newMx/, ''),
        },
        // '/zhyq/mx': {
        // '/zhyq-rc/mx': {
        //   // target: 'http://localhost',
        //   target: 'https://wrj.shuixiongit.com/zhyq/mx',
        //   target: 'https://wrj.shuixiongit.com/zhyq-rc/mx',
        //   changeOrigin: true,
        //   rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
        //   rewrite: path => path.replace(/^\/zhyq-rc\/mx/, ''),
        // },
        '/zhyqapi': {
        '/zhyqrcapi': {
          // target: 'http://localhost:8082',
          target: 'https://wrj.shuixiongit.com/zhyqapi',
          target: 'https://wrj.shuixiongit.com/zhyqrcapi',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyqapi/, ''),
          rewrite: path => path.replace(/^\/zhyqrcapi/, ''),
        },
        '/arcgis117': {
          target: 'https://wrj.shuixiongit.com/arcgis117',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/arcgis117/, ''),
        },
      },
    },