{{info.account}}
data () {
return {
info: {
account: null
},
mini: false,
adminActive: true
}
}
created () {
Bus.$on("login-on", id => {
this.$http.get("http://localhost:8088/api/login/searchAccount?account=" + id).then((response) => {
let res = response.data
this.info = res.data
console.log(this.info) //
})
.catch((reject) => {
console.log(reject)
})
})
}
mounted () {
console.log(this.info.account) //undefined
}
how can I render info.account
this is the data printed by this.info