|
@@ -55,9 +55,9 @@ const curPageAllCards = ref<any>([])
|
|
|
const watchCards = () => {
|
|
const watchCards = () => {
|
|
|
curPageAllCards.value = document?.querySelectorAll('.notification-message-card')
|
|
curPageAllCards.value = document?.querySelectorAll('.notification-message-card')
|
|
|
curPageAllCards.value.forEach((card: any) => {
|
|
curPageAllCards.value.forEach((card: any) => {
|
|
|
- const index = notificationMsgStore.notificationMsgList.indexOf(card.dataset.cardId)
|
|
|
|
|
-
|
|
|
|
|
- if (index < 0 && card.dataset.cardIsread === 'false' && card.dataset.cardId) {
|
|
|
|
|
|
|
+ // const index = notificationMsgStore.notificationMsgList.indexOf(card.dataset.cardId)
|
|
|
|
|
+ // index < 0 &&
|
|
|
|
|
+ if (card.dataset.cardIsread === 'false' && card.dataset.cardId) {
|
|
|
notificationMsgStore.concatNotificationMsgList([card.dataset.cardId])
|
|
notificationMsgStore.concatNotificationMsgList([card.dataset.cardId])
|
|
|
|
|
|
|
|
observer.observe(card)
|
|
observer.observe(card)
|