Explorar o código

添加分类刷新

sugar1569 %!s(int64=7) %!d(string=hai) anos
pai
achega
0a560a4422
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      application/admin/controller/store/StoreCategory.php

+ 2 - 0
application/admin/controller/store/StoreCategory.php

@@ -61,6 +61,8 @@ class StoreCategory extends AuthController
             Form::radio('is_show','状态',1)->options([['label'=>'显示','value'=>1],['label'=>'隐藏','value'=>0]])
         ]);
         $form->setMethod('post')->setTitle('添加分类');
+        $form->setMethod('post')->setTitle('添加产品')->setSuccessScript('parent.$(".J_iframe:visible")[0].contentWindow.location.reload();');
+
         $this->assign(compact('form'));
         return $this->fetch('public/form-builder');
     }