[Vuejs]-Nuxt js check endpoint exists

0đź‘Ť

You forget “$get” when you used “$axios”

async asyncData({ app, params, env, error, store }) {
      var _icon = "https://www.google.com/favicon.ico";
      try {
         var result = await app.$axios.$get(_icon);
      } catch (error) {
        console.log(error)
      }

}

Leave a comment