Vue配置多个跨域接口的规范写法?

1.vue配置多个跨域接口的规范写法?
2.vue 配置携带参数的跨域接口的规范写法?

proxy: {
    '/api': { 
        target: 'http://xxx.xxx.xx.xx:3000/api',
        changeOrigin: true
    },
    '/api2': { 
        target: 'http://xxx.xxx.xx.xx:3001/api',
        changeOrigin: true
    }
}