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

Menu