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

This commit is contained in:
eoao
2025-06-28 21:35:43 +08:00
parent 2bef5ee0f6
commit 99bbdb3df1
6 changed files with 16 additions and 12 deletions

View File

@@ -267,16 +267,18 @@ watch(() => emailStore.deleteIds, () => {
} }
}) })
watch(() => emailStore.cancelStarEmailId, () => {
emailList.forEach(email => {
if (email.emailId === emailStore.cancelStarEmailId) {
email.isStar = 0
}
})
})
const accountShow = computed(() => { const accountShow = computed(() => {
return uiStore.accountShow && settingStore.settings.manyEmail === 0 return uiStore.accountShow && settingStore.settings.manyEmail === 0
}) })
function formateReceive(recipient) {
recipient = JSON.parse(recipient)
return recipient.map(item => item.address).join(', ')
}
function handleScroll(e) { function handleScroll(e) {
} }

View File

@@ -5,6 +5,7 @@ export const useEmailStore = defineStore('email', {
deleteIds: 0, deleteIds: 0,
starScroll: null, starScroll: null,
emailScroll: null, emailScroll: null,
cancelStarEmailId: 0,
contentData: { contentData: {
email: null, email: null,
delType: null, delType: null,

View File

@@ -36,6 +36,7 @@ function jumpContent(email) {
} }
function cancelStar(email) { function cancelStar(email) {
emailStore.cancelStarEmailId = email.emailId
scroll.value.deleteEmail([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

View File

@@ -6,8 +6,8 @@
<title></title> <title></title>
<link rel="icon" href="/assets/favicon-C5dAZutX.svg" type="image/svg+xml"> <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 src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<script type="module" crossorigin src="/assets/index-DJSpSDrA.js"></script> <script type="module" crossorigin src="/assets/index-M5fqt_kt.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DuYAEzF2.css"> <link rel="stylesheet" crossorigin href="/assets/index-2TyrOAND.css">
</head> </head>
<body> <body>
<div id="loading-first"> <div id="loading-first">