How should webpack proxyTable proxy be set up with multiple target addresses?

the server An interface I want to request is A
http://192.168.0.106:8080/qianbomall/app/login
server B interface
http://pv.sohu.com/cityjson

.

now I set up ProxyTable

proxyTable: [{
  "/api": {
    target: "http://192.168.0.106:8080",
    changeOrigin: true,
    pathRewrite: {
      "^/api": ""
    }
  }
},{
"/ips": {
    target: "http://pv.sohu.com",
    changeOrigin: true,
    pathRewrite: {
      "^/ips": ""
    }
  }
}]

when the interface is requested,

axios.get("ips/cityjson")
axios.post("api/qianbomall/app/login")

request to return index.html to me directly

there is no problem if only one agent is set up. Do I have a problem with writing

proxyTable: {
  "/api": {
    target: "http://192.168.0.106:8080",
    changeOrigin: true,
    pathRewrite: {
      "^/api": ""
    }
  }
}
Oct.09,2021

proxyTable: {
  '/api': {
    target: 'http://192.168.0.106:8080',
    changeOrigin: true,
    pathRewrite: {
      '^/api': ''
    }
  },
'/ips': {
    target: 'http://pv.sohu.com',
    changeOrigin: true,
    pathRewrite: {
      '^/ips': ''
    }
  }
}

No problem, let's see what's wrong

.
Menu