diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index 2f8cf62..e6499e7 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -566,7 +566,7 @@ }) document.addEventListener('DOMContentLoaded', function() { var noticeInner = document.querySelector('.notice__inner'); - var noticeItems = Array.from(document.querySelectorAll('.notice__item')); + var noticeItems = Array.prototype.slice.call(document.querySelectorAll('.notice__item')); var currentIndex = 0; if (noticeItems.length > 1) { function showCurrentNotice() {