mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-21 19:35:50 +08:00
修复某些情况取消星标不同步
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])
|
||||
}
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user