自分用めも

初心者ちっくなプログラムネタを中心に、自分用の覚え書きをメモっていくための場所です。

Vue2 + axiosでCannot read property 'protocol' of undefinedエラー

同一ソース内で、こっちはok

      this.axios.post(Const.apiPath.hogeurl, {}, {
        headers: {
          Authorization: 'Bearer ' + sessionStorage.getItem('token'),
        }
      }).then(

こっちはNG

      this.axios.post(Const.apiPath.Fugaurl, {}, {
        headers: {
          Authorization: 'Bearer ' + sessionStorage.getItem('token'),
        }
      }).then(

axiosに同じエラーを吐く不具合があるようでググって余計に混乱したが、
単純にURLが間違っていた…(fugaurl)