修复500页和404页报错的问题

This commit is contained in:
stonewu 2023-08-25 11:11:04 +08:00
parent 243e52963a
commit a6e830198e
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">