智慧园区前端大屏
shuishen
2024-11-01 151d907fc6521e0fad7ab53382f5309ed49c122d
代理配置调整
1 files modified
9 ■■■■ changed files
vite.config.js 9 ●●●● patch | view | raw | blame | history
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-10-31 18:23:13
 * @LastEditTime: 2024-11-01 11:15:36
 * @FilePath: \bigScreen\vite.config.js
 * @Description: 
 * 
@@ -81,6 +81,13 @@
      https: true,
      host: '0.0.0.0',
      proxy: {
        '/zhyq/mx': {
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/zhyq/mx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
        },
        '/zhyqapi': {
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/zhyqapi',