Browse Source

上传插件处理已有记录图片的路径问题,修改为yii2的Url方法

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
0167f3b763
  1. 3
      vendor/antgoods/goods/src/views/goods/_form.php

3
vendor/antgoods/goods/src/views/goods/_form.php

@ -6,6 +6,7 @@ use antgoods\goods\models\ars\Category;
use antgoods\goods\models\ars\Brand; use antgoods\goods\models\ars\Brand;
use antgoods\goods\models\ars\ShopCategory; use antgoods\goods\models\ars\ShopCategory;
use antgoods\goods\models\ars\Supplier; use antgoods\goods\models\ars\Supplier;
use yii\helpers\Url;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\Goods */ /* @var $model antgoods\goods\models\ars\Goods */
@ -78,7 +79,7 @@ use antgoods\goods\models\ars\Supplier;
'fillInAttribute' => 'imageId', 'fillInAttribute' => 'imageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => 'image-file?fileidstr='.$model->imageId,
'url' => Url::to(['image-file', 'fileidstr' => $model->imageId]),
], ],
])->label('图片') ?> ])->label('图片') ?>

Loading…
Cancel
Save