[Vuejs]-Showing data after hard refresh

0👍

As you are using arrow function this keyword is already accessible inside the function.
And for this you should first check in console if you are getting proper response value from api in console.
Hence change your function as below and check once.

 async getVueItems() {
  await axios.get('./api/auth/me').then(response => {
      console.log(response);
      this.name = response.data.name;
      this.email = response.data.email;
  });

Leave a comment