data里面做了定義

在方法里面進行賦值

用 this.info = repos.data 數據可以請求到,但是會報錯 TypeError: Cannot set property 'listgroup' of undefined

主要原因是:
在 then的內部不能使用Vue的實例化的this, 因為在內部 this 沒有被綁定
在then的內部,console.log(this),輸出undefined
解決辦法:
在請求axios外面定義一下 let that = this
內部用:that.info = repos.data
