visuddhinanda il y a 2 ans
Parent
commit
98ae2168b1
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      dashboard/src/components/notification/NotificationIcon.tsx

+ 3 - 0
dashboard/src/components/notification/NotificationIcon.tsx

@@ -22,6 +22,9 @@ const NotificationIconWidget = () => {
                 Notification.requestPermission(function (status) {
                   const notification = new Notification("通知标题", {
                     body: json.data.rows[0].content,
+                    icon:
+                      process.env.REACT_APP_API_HOST +
+                      "/assets/images/wikipali_logo.png",
                   });
                   notification.onclick = (event) => {
                     event.preventDefault(); // 阻止浏览器聚焦于 Notification 的标签页