Merge pull request #447 from Stonewuu/fix-error-page

修复500页和404页报错的问题
This commit is contained in:
困困鱼 2023-08-25 11:20:43 +08:00 committed by GitHub
commit 44d11c30e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = '404')}"
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = '404', title = '404')}"
xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="content">

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = '500')}"
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = '500', title = '500')}"
xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="content">