this.$set() 在带有 laravel 的 vue2.0 中不起作用

this.$set() is not working in vue2.0 with laravel

我正在尝试在 vue js 中设置一些数据并在视图中访问它们。

我的 vue 方法,

getVueItems: function(){
        var vm = this;
        axios.get('/someuri').then(function(response)  {
        vm.$set(this,'items', response.data);
      });
    },

在我看来,

<tr v-for="item in items">
        <td>@{{ item.id }}</td>
        <td>@{{ item.name }}</td>
</tr>

路由正在返回结果,但无法将其设置为 items 然后在视图中循环它们。

我是不是做错了什么。有什么解决方法吗?

利用自动绑定的 es2015 语法...

getVueItems: function(){
        axios.get('/someuri').then(response => {
        this.items = response.data;
      });
    },