Vue uses axios to call back-end data

A page needs to request two or three pieces of data from the background and render it to the page.

staticjsonaxios

the current problem is that the data cannot be displayed on the page and solved.

Nov.12,2021

this.uname = res.data [0] .uname

this.uname = res.data.uname

  

may be this.uname = res.data.data [0] .uname

Menu