gaoshp
2024-03-24 0f0a7273b7dedcfad794342e0cc91a50f2b724f3
vue.config.js
@@ -1,3 +1,9 @@
/*
 * @Date: 2024-03-23 09:49:06
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-03-23 18:21:49
 * @FilePath: /cps-web/vue.config.js
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
@@ -19,7 +25,14 @@
            target: process.env.VUE_APP_API_BASEURL,
            ws: true,
            pathRewrite: {
               '^/api': '/'
               // '^/api': '/'
            }
         },
         '/myapi': {
            target: process.env.VUE_APP_API_MYBASEURL,
            ws: true,
            pathRewrite: {
               '^/myapi': '/'
            }
         }
      }