1. server:{
    2. proxy:{
    3. "api":{
    4. target:'www.baidu.com',
    5. changeOrigin:true,
    6. rewrite:(path)=>path.replace('\/api','')
    7. }
    8. }
    9. }