Vue reports an error. This is a keyword.

methods: {

this.$nextTick(function () {
      this.$http.jsonp("http://119.23.247.243:28050/api/home/wap/").then(function(res) {
        console.log(res.data)
        this.gridData = res.data;
      })
    })

}
request this interface data in methods, indicating that this is a keyword,
index.vue: this is a reserved word (210 br 4)

Dec.09,2021

function(res) {
        console.log(res.data)
        this.gridData = res.data;
      }
Change

to

res => {
        console.log(res.data)
        this.gridData = res.data;
      }

you use this incorrectly, change it to callback and change it to arrow function

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