Browse Source

修改 scene

xaboy 6 years ago
parent
commit
a450ed448c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/FormHandle.php

+ 2 - 1
src/FormHandle.php

@@ -55,8 +55,9 @@ abstract class FormHandle implements FormHandleInterface
         return [];
     }
 
-    public function scene()
+    public function scene($scene = null)
     {
+        if (!is_null($scene)) $this->scene = $scene;
         return $this->scene;
     }