diff --git a/app/Admin/Forms/v3/GoodsImageForm.php b/app/Admin/Forms/v3/GoodsImageForm.php index 0388481..263dfcd 100644 --- a/app/Admin/Forms/v3/GoodsImageForm.php +++ b/app/Admin/Forms/v3/GoodsImageForm.php @@ -73,7 +73,7 @@ class GoodsImageForm extends Form implements LazyRenderable $this->hidden('goods_id')->value($id); $this->display('name','商品名称')->value($goodName); - $this->image('cover_img','封面图')->uniqueName()->customFormat(function() use($coverImg){ + $this->image('cover_img','封面图')->uniqueName()->retainable()->customFormat(function() use($coverImg){ return [$coverImg]; })->autoUpload(); $this->multipleImage('img_banner','轮播图')->uniqueName()->customFormat(function() use($id){