gaoshp
2024-03-23 a3fd83b160654d3252bd39e8f9e4c6b010c0ac82
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({
@@ -21,6 +27,13 @@
            pathRewrite: {
               '^/api': '/'
            }
         },
         '/myapi': {
            target: process.env.VUE_APP_API_MYBASEURL,
            ws: true,
            pathRewrite: {
               '^/myapi': '/'
            }
         }
      }
   },