From f5bac77f45c27e0d021722db863e689624c1b98b Mon Sep 17 00:00:00 2001 From: Ying Date: Tue, 18 Jul 2023 10:12:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90swit?= =?UTF-8?q?ch=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/system/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/system/Form.php b/extend/system/Form.php index d4f5fdc..bd131ce 100644 --- a/extend/system/Form.php +++ b/extend/system/Form.php @@ -394,7 +394,7 @@ class FormBuilder */ public function switch(array $data = []): string { - $value = $this->formtype ? 'value="{$data.' . $data['name'] . '}"' : ''; + $value = $this->formtype ? '{$data.' . $data['name'] . '}' : ''; $param = '$data.' . $data['name']; if ($this->formtype) { return <<