The Vue Element-UI component cannot bind the properties of an object contained in data

approximate code:

   

I don"t understand what"s going on. Is there a solution? (v ^ _ ^) v

Aug.27,2021

< el-main height= "" vsway for= "(data,index) in user" >
user name: {{data.username}}
< / el-main >

user: [{username: 'username'}]

this is how I solved it!


Cannot read property 'username' of undefined
according to the error prompt, this.user is assigned to undefined for a certain period of time when the code is running, so check it first.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf36e4-54ad6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf36e4-54ad6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?