�当前页面的announcement_id相同，则不弹出悬浮窗
    if (localStorageValue === currentAnnouncementId || localStorageAnn === currentAnnouncement) {
      announcementNotice.style.display = 'none';
    } else {
      announcementNotice.style.display = 'flex';
    }
  }

  // 设置localStorage，并关闭悬浮窗
  function setLocalStorage() {
    const currentAnnouncementId = "{{announcement_id}}";
    const currentAnnouncement = `{{announcement}}`
    localStorage.setItem("announcementNoticeId