后台会员管理

This commit is contained in:
TL 2022-07-06 15:27:20 +08:00
parent c1c9f1ec5b
commit 5ebfc8a447
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class CustomerResource extends JsonResource
'status' => $this->status ? '启用' : '禁用',
'avatar' => image_resize($this->avatar),
'from' => $this->from,
'customer_group_name' => $this->customerGroup->description->name,
'customer_group_name' => $this->customerGroup->description->name ?? '',
'edit' => admin_route('customers.edit', $this->id),
'delete' => admin_route('customers.destroy', $this->id),
];