浏览代码

修改 scene

xaboy 6 年之前
父节点
当前提交
a450ed448c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/FormHandle.php

+ 2 - 1
src/FormHandle.php

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