修复某些情况取消星标不同步
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ export const useEmailStore = defineStore('email', {
|
||||
deleteIds: 0,
|
||||
starScroll: null,
|
||||
emailScroll: null,
|
||||
cancelStarEmailId: 0,
|
||||
contentData: {
|
||||
email: null,
|
||||
delType: null,
|
||||
|
||||
@@ -36,6 +36,7 @@ function jumpContent(email) {
|
||||
}
|
||||
|
||||
function cancelStar(email) {
|
||||
emailStore.cancelStarEmailId = email.emailId
|
||||
scroll.value.deleteEmail([email.emailId])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user