From aa5d3647c18023fb72bb366da8b602f6194156d7 Mon Sep 17 00:00:00 2001 From: eoao Date: Tue, 18 Nov 2025 22:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=8A=A8=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=82=AE=E4=BB=B6=E5=BC=B9=E7=AA=97=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail-vue/src/icons/index.js | 12 ++++++++++++ mail-vue/src/views/email/index.vue | 25 ++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/mail-vue/src/icons/index.js b/mail-vue/src/icons/index.js index b2cdeaf..a36507d 100644 --- a/mail-vue/src/icons/index.js +++ b/mail-vue/src/icons/index.js @@ -682,4 +682,16 @@ addCollection({ } } }) +addCollection({ + "prefix": "fluent", + "lastModified": 1761371481, + "aliases": {}, + "width": 20, + "height": 20, + "icons": { + "mail-read-20-regular": { + "body": "" + } + } +}) diff --git a/mail-vue/src/views/email/index.vue b/mail-vue/src/views/email/index.vue index e18bbc0..21096d3 100644 --- a/mail-vue/src/views/email/index.vue +++ b/mail-vue/src/views/email/index.vue @@ -29,7 +29,7 @@ import {useSettingStore} from "@/store/setting.js"; import emailScroll from "@/components/email-scroll/index.vue" import {emailList, emailDelete, emailLatest, emailRead} from "@/request/email.js"; import {starAdd, starCancel} from "@/request/star.js"; -import {defineOptions, onMounted, reactive, ref, watch} from "vue"; +import {defineOptions, h, onMounted, reactive, ref, watch} from "vue"; import {sleep} from "@/utils/time-utils.js"; import router from "@/router/index.js"; import {Icon} from "@iconify/vue"; @@ -85,8 +85,27 @@ async function latest() { if (list.length > 0) { list.forEach(email => { - existIds.add(email.emailId) - scroll.value.addItem(email) + + setTimeout(() => { + + if (!existIds.has(email.emailId) && innerWidth > 1367) { + + ElNotification({ + type: 'primary', + message: `
${email.name}
${email.subject}
`, + position: 'bottom-right', + dangerouslyUseHTMLString: true, + onClick: () => { + jumpContent(email); + } + }) + } + + existIds.add(email.emailId) + scroll.value.addItem(email) + + },50) + }) }