Skip to content

在 title 中显示详细标题信息#8

Merged
allendevx merged 2 commits intomainfrom
unknown repository
Mar 13, 2023
Merged

在 title 中显示详细标题信息#8
allendevx merged 2 commits intomainfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 6, 2023

No description provided.

@allendevx allendevx added the enhancement New feature or request label Mar 8, 2023
@allendevx
Copy link
Copy Markdown
Owner

您好,欢迎您贡献代码。
你可以尝试一下

  1. layout.html中修改th:fragment的接收参数
  2. 在例如:page.html中传递参数至layout.html中
  3. 将标题传入layout后,在layout页面通过th:replace将标题传入header.html,这样就可以不用进行if多个判断了

@allendevx
Copy link
Copy Markdown
Owner

allendevx commented Mar 8, 2023

@fyljp 下次PR时麻烦遵守一下commit规范哈。3q

@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 8, 2023

没用过这个东西,我再看看官方文档

@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 12, 2023

这次路数应该对了,多谢指教!

@allendevx allendevx merged commit 5fe1318 into allendevx:main Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant