yangys
2025-11-04 1ca3f1a1b91ddd07e1d69e046c7a4b62fa6634c4
vue.config.js
@@ -1,7 +1,7 @@
/*
 * @Date: 2024-03-23 09:49:06
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-11-03 20:06:33
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-11-27 14:59:26
 * @FilePath: /cps-web/vue.config.js
 */
const { defineConfig } = require('@vue/cli-service')
@@ -30,7 +30,7 @@
               '^/api': '/'
            }
         },
         'workinghour': {
         '/workinghour': {
            target: 'http://120.46.212.231:5102',
            // ws: true,
            changeOrigin: true,
@@ -55,10 +55,11 @@
            }
         },
         '/api': {
            target: process.env.VUE_APP_API_BASEURL,
            target: 'http://localhost:4102',
            //process.env.VUE_APP_API_BASEURL,
            ws: true,
            pathRewrite: {
               // '^/api': '/'
                '^/api': '/'
            }
         },