Laravel Vue未从api接收所有数据

Laravel Vue未从api接收所有数据,laravel,vue.js,Laravel,Vue.js,我有一个vue前端,我使用一个laravel后端,它有这个模型 class Address extends Model { .... public function addressestimate() { return $this->hasMany('\App\Models\AddressEstimate', 'addressesid', 'id'); } 在检索数据时,我按如下方式输出您: public function show($id, $d

我有一个vue前端,我使用一个laravel后端,它有这个模型

class Address extends Model
{
....
    public function addressestimate()
    {
        return $this->hasMany('\App\Models\AddressEstimate', 'addressesid', 'id');
    }
在检索数据时,我按如下方式输出您:

public function show($id, $delegatesid)
{
    $data = Address::with('files')->with('addressestimate')->with('salutation')->with('country')->where('id', $id)->where('delegatesid', $delegatesid)->get();

    return response()->json($data);
}
当我在浏览器中相应地输入API调用时,所有数据都会显示给我,包括
addressestimate
中的3个元素。如果我使用Vue进行调用,控制台中会显示所有内容,但
addressestimate
始终为空。我有3个不同的浏览器,我不明白这个问题

所有其他关系也将显示您的内容。 这是Vue中的调用

this.$http.get('/addresses/' + this.$route.params.salesleadid + '/delegates/' + userInfo.user.delegatesid)
    .then(function (response) {
            console.log(response)
这就是路线

Route::get('/addresses/{id}/delegates/{delegatesid}', [AddressesController::class, 'show'])->where('id', '[0-9]+')->where('delegatesid', '[0-9]+');

这是json数据:

[
{
“id”:209210,
“名字”:“桑德拉”,
“国家”:[
{
“id”:1,
“名称”:“德国”,
“countryprefix”:“49”,
“countryabbrev”:“DE”
}
],
“delegatesid”:40,
“敬礼SID”:2,
“requesttypesid”:4,
“countriesid”:1,
“创建日期”:“2021年3月25日”,
“请求子类型ID”:39,
“标题”:空,
“isprinted”:正确,
“移动”:空,
“countiesid”:42,
“createdby”:空,
“ispreferred”:假,
“destinationid”:3,
“firstnameoptional”:空,
“lastnameoptional”:空,
“dbcreatedate”:“2021-03-25T08:51:29.614481Z”,
“isvcardexported”:正确,
“supporterdelegateid”:0,
“IsupporterCardExported”:false,
“状态”:“Neu”,
“constructionsitecountry”:空,
“constructionsitehasplot”:false,
“isarchive”:错误,
“已取消”:错误,
“取消原因”:空,
“phone2”:空,
“phone3”:空,
“单元格”:空,
“mail2”:空,
“constructionsitestreet”:空,
“constructionsitezipcode”:空,
“constructionsitecity”:空,
“isonfavoritelist”:正确,
“isexportedformailchimp”:错,
“文件”:[
],
“地址估计”:[
{
“id”:186,
“地址ID”:209210,
“dbcreatedate”:“2021-05-14T04:38:40.000000Z”,
“估算”:“5000”,
“更改原因”:空
},
{
“id”:187,
“地址ID”:209210,
“dbcreatedate”:“2021-05-14T05:00:35.000000Z”,
“估计数”:“150000”,
“更改原因”:空
},
{
“id”:188,
“地址ID”:209210,
“dbcreatedate”:“2021-05-14T05:01:08.000000Z”,
“估计数”:“150000”,
“更改原因”:空
},
{
“id”:189,
“地址ID”:209210,
“dbcreatedate”:“2021-05-14T10:30:56.000000Z”,
“估计数”:“150000”,
“更改原因”:空
}
],
“敬礼”:[
{
“id”:2,
“姓名”:“女士”,
“字母称呼”:“Sehr geehrte Frau%lastname%”,
“hasoptionalname”:false,
“名称枚举”:“Frau%firstname%%lastname%”,
“文档称呼”:“Frau%firstname%%lastname%”
}
]
}
]