Merge pull request #117 from maxbad/v2.0

fix #100
This commit is contained in:
孟帅
2024-07-19 18:35:00 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ func (s *sView) RenderTpl(ctx context.Context, tpl string, data ...model.View) {
} }
content := "" content := ""
if !gres.IsEmpty() { if !gres.IsEmpty() && gres.Contains(tpl) {
content = string(gres.GetContent(tpl)) content = string(gres.GetContent(tpl))
} else { } else {
content = gfile.GetContents(tpl) content = gfile.GetContents(tpl)

View File

@@ -102,6 +102,7 @@
message.error('请填写完整信息'); message.error('请填写完整信息');
} }
formBtnLoading.value = false; formBtnLoading.value = false;
loading.value = false;
}); });
} }