Cannot set property 'pageData' of undefined?

clipboard.png


pageData

clipboard.png

Jul.18,2021

this problem. Your function is not = > arrow function. The this obtained is not a vue instance. Change
to

.
 axios.get('/api/tableData.json')
        .then(response => {
            console.log(111)
            response=response.data
            console.log(response.pageData)
            if(response.ret && response.pageData) {
              var data = response.pageData
              this.pageData = data
            }
    })

it's either like what the second floor said.
either before axios.get ('/ api/tableData.json')
, let _ this = this;

 _this this
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-1b3dd72-2bc1b.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-1b3dd72-2bc1b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?