例えばログインAPIを呼び出したとき
async submit() {
const response = await this.$axios.$post('/api/login', {
email: this.email,
password: this.password,
});
console.log('login reponse', response);
if (response.username) {
this.authUser = response.username;
}
},