[admin] fix user link

This commit is contained in:
xiaomlove
2022-10-07 02:51:52 +08:00
parent 00fc2293cd
commit 9865fed808
6 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ class UserMedalResource extends Resource
Tables\Columns\TextColumn::make('user.username')
->label(__('label.username'))
->searchable()
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->id, false, true, true, true)))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->uid, false, true, true, true)))
,
Tables\Columns\TextColumn::make('medal.name')->label(__('label.medal.label'))->searchable(),
Tables\Columns\ImageColumn::make('medal.image_large')->label(__('label.image')),