diff --git a/backend/modules/goods/views/goods/view.php b/backend/modules/goods/views/goods/view.php index 89146a0..d553ca5 100755 --- a/backend/modules/goods/views/goods/view.php +++ b/backend/modules/goods/views/goods/view.php @@ -77,7 +77,7 @@ $this->params['breadcrumbs'][] = $this->title; ['attribute' => 'image', 'format' => 'raw', 'value' => function ($model) { - return $model->image ? + return $model->imageFile ? Html::img(['/'.$model->imageFile->path], ['style' => 'width:80px']) : '
未设置
';