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
commit 71e2176a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 := ""
if !gres.IsEmpty() {
if !gres.IsEmpty() && gres.Contains(tpl) {
content = string(gres.GetContent(tpl))
} else {
content = gfile.GetContents(tpl)

View File

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