2017-10-19 4 views

답변

0

당신은 웹팩-DEV-서버 프록시 객체를 pathRewrite 재산

devServer: { 
    contentBase: <Your-Value>, 
    proxy = { 
     '/test/menuList': { 
      target: http://localhost:9000/test/menuList, 
      pathRewrite(req, options) { 
        return req + '.json'; 
      } 
     } 
    } 
    ... 
} 
을 조정 시도 할 수 있습니다