修复某些情况取消星标不同步

This commit is contained in:
eoao
2025-06-28 21:35:43 +08:00
parent eb25f831d3
commit 1d83c6543c
6 changed files with 16 additions and 12 deletions
@@ -267,16 +267,18 @@ watch(() => emailStore.deleteIds, () => {
}
})
watch(() => emailStore.cancelStarEmailId, () => {
emailList.forEach(email => {
if (email.emailId === emailStore.cancelStarEmailId) {
email.isStar = 0
}
})
})
const accountShow = computed(() => {
return uiStore.accountShow && settingStore.settings.manyEmail === 0
})
function formateReceive(recipient) {
recipient = JSON.parse(recipient)
return recipient.map(item => item.address).join(', ')
}
function handleScroll(e) {
}
+1
View File
@@ -5,6 +5,7 @@ export const useEmailStore = defineStore('email', {
deleteIds: 0,
starScroll: null,
emailScroll: null,
cancelStarEmailId: 0,
contentData: {
email: null,
delType: null,
+1
View File
@@ -36,6 +36,7 @@ function jumpContent(email) {
}
function cancelStar(email) {
emailStore.cancelStarEmailId = email.emailId
scroll.value.deleteEmail([email.emailId])
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -6,8 +6,8 @@
<title></title>
<link rel="icon" href="/assets/favicon-C5dAZutX.svg" type="image/svg+xml">
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<script type="module" crossorigin src="/assets/index-DJSpSDrA.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DuYAEzF2.css">
<script type="module" crossorigin src="/assets/index-M5fqt_kt.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-2TyrOAND.css">
</head>
<body>
<div id="loading-first">