diff --git a/backend/modules/goods/models/searchs/GoodsSearch.php b/backend/modules/goods/models/searchs/GoodsSearch.php index 6a8b04f..f70194c 100755 --- a/backend/modules/goods/models/searchs/GoodsSearch.php +++ b/backend/modules/goods/models/searchs/GoodsSearch.php @@ -63,7 +63,7 @@ class GoodsSearch extends Goods 'width'=>'10%', 'format' => 'raw', 'value' => function ($model) { - return $model->image ? + return $model->imageFile ? Html::img(['/'.$model->imageFile->path], ['style' => 'width:80px']) : '