title: how to access response data from axios response in vuejs
body: <p>My server Api response is like this :-</p>
  
  <pre><code>{"data":{"databases":["rohit_one_test"]},"error":null,"success":true}
  </code></pre>
  
  <p>I'm using axios with vue js to make the call like this.</p>
  
  <p>//axiosget function</p>
  
  <pre><code>import axios from 'axios';
  
  export function axiosGet (url) {
    return axios.get(url,{ headers: {'Authorization': 'Basic token'}})
      .then(function (response) {
          return response.data.data;
      })
      .catch(function (error) {
          return 'An error occured..' + error;
      })
  }
  </code></pre>
  
  <p>i'm calling it somewhere else like this :-</p>
  
  <pre><code>showdblist(){
        this.url=API_LOCATION+"/tools/mysql/resources/databases/"+this.domain;
        this.dbs=axiosGet(this.url);
        console.log(this.dbs);
  
  }
  </code></pre>
  
  <p>when i log the dbs variable it has something like this.</p>
  
  <p>screen shot here :--<a href="https://prnt.sc/kmaxbq" rel="nofollow noreferrer">https://prnt.sc/kmaxbq</a></p>
  
  <p>my question is how can i access the name of my databases in the dbs variable ?</p>