fangyuan
2022-12-26 182a5b6da26a6fa461a190fc5c371034f1a3bc63
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
      host: 'localhost',
      port: 9098,
      open: true,
    proxy: {
      '/api': {
        target: 'http://localhost:9099',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})