Pārlūkot izejas kodu

修复表单页面选择继续编辑会导致hasMany重复添加数据问题

jqh 4 gadi atpakaļ
vecāks
revīzija
16bbf6ee34
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/Form.php

+ 1 - 0
src/Form.php

@@ -822,6 +822,7 @@ class Form implements Renderable
                 $this->response()
                     ->success(trans('admin.update_succeeded'))
                     ->redirectIf($url !== false, $url)
+                    ->refreshIf($url === false)
             );
         } catch (\Throwable $e) {
             $response = $this->handleException($e);