From 6de26a78955a943226a39a94f94146894d68434c Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Mon, 9 Dec 2019 11:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=9B=A0=E5=9B=BE=E7=89=87=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/goods/views/goods/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) : '
未设置
';