Skip to content

Commit

Permalink
fix: fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Dec 23, 2023
1 parent 771ade3 commit 13652a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 9 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,13 @@ <h2 class="subtitle">
{% include "footer.html" %}
{% endif %}

<!--整站消息提醒功能 -->
{% if messages %}
<script>
{% for message in messages %}
swal("{{ message.extra_tags }}", '{{ message }}', '{{ message.level_tag }}');
{% endfor %}
</script>
{% endif %}

</html>
8 changes: 0 additions & 8 deletions templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,3 @@
</div>
</footer>
{% endif %}
<!--整站消息提醒功能 -->
{% if messages %}
<script>
{% for message in messages %}
swal("{{ message.extra_tags }}", '{{ message }}', '{{ message.level_tag }}');
{% endfor %}
</script>
{% endif %}

0 comments on commit 13652a9

Please sign in to comment.