Skip to content

Commit

Permalink
udate before-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliang-wt committed Jun 27, 2021
1 parent 3247a66 commit 612eb77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/WalkingTec.Mvvm.TagHelpers.LayUI/Form/FormTagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
<script>
ff.RenderForm('{Id}');
");

if(BeforeSubmit != null && BeforeSubmit.Contains("(") == false)
{
BeforeSubmit += "()";
}
// 使用传统表单提交方式提交,而不使用 AJAX 提交
// 比如登陆页面,提交后校验成功会跳转其他页面,而不是返会 PartialView
if (OldPost == false && !(this is SearchPanelTagHelper))
Expand Down

0 comments on commit 612eb77

Please sign in to comment.