title: Change request method in axios interceptor
body: <p>I'm trying to change an axios <code>GET</code> request into a <code>POST</code> request using an interceptor. The method seems to be changed, but my params are still affixed to the URL, instead of being sent in the <code>POST</code> body.</p>
  
  <pre><code>    axios.get(payload.url, {
        params: payload.params || {}
      })
  
      axios.interceptors.request.use(
        function (config) {
          // check request method -&gt; use post if many params
          if (MY_CONDITION) {
            if (config.method === 'get') {
              console.log('changed to post')
              config.method = 'post'
            }
          }
          return config
        }
      )
  </code></pre>
  
  <p>Am I missing something?</p>