proxyTable:{'/server':{target:'http://localhost:8000/',//接口的域??//secure:false,//如果是https接口,需要配置這個參??changeOrigin:true,//如果接口跨域,需要進行這個參數(shù)配??//pathRewrite:{//'^/api':''//}}'/user':{target:'http://localhost:8000/user/register',//接口的域??secure:true,//如果是https接口,需要配置這個參??changeOrigin:true,//如果接口跨域,需要進行這個參數(shù)配??//pathRewrite:{//'^/api':''//}},}
http://localhost:8000/user請求成http://localhost:8000/server/user
DIEA
2019-05-13 10:42:34