moshaorui hace 4 meses
padre
commit
3ce1e15c18
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1 6
      app/Distributor/Controllers/SitePagesController.php

+ 1 - 6
app/Distributor/Controllers/SitePagesController.php

@@ -88,7 +88,7 @@ class SitePagesController extends AdminDistController
                 $filter->panel();
                 $filter->expand();
                 $filter->like('title')->width(2);
-                $filter->equal('pagesTag.id',admin_trans_label('tags'))->select('api/tag')->width(2);
+                $filter->equal('pagesTag.id',admin_trans_label('tags'))->select(SitePagesTag::all()->pluck('name', 'id'))->width(2);
             });
             //权限与条件
             $grid->model()->where('dist_id', getDistributorId())->where('page_type', $location)->orderBy('id', 'desc');
@@ -210,11 +210,6 @@ class SitePagesController extends AdminDistController
                     $form->seo_title = $form->title;
                 }
             });
-            //保存后
-            $form->saved(function (Form $form) use ($location) {
-                //更新缓存
-                return $form->response()->success(admin_trans_label('update_success'))->redirect("/site-pages?location={$location}");
-            });
         });
     }
 }