修复某些情况取消星标不同步
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(() => {
|
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
4
mail-worker/dist/index.html
vendored
4
mail-worker/dist/index.html
vendored
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user