fix(notify): update read status for tablet
This commit is contained in:
@@ -57,6 +57,9 @@ const props = withDefaults(defineProps<{
|
||||
}>(), {
|
||||
notifyId: ""
|
||||
});
|
||||
const emit = defineEmits<{
|
||||
read: [];
|
||||
}>();
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -171,6 +174,7 @@ async function markRead(item: NotifyDetail, requestToken: number): Promise<void>
|
||||
}
|
||||
try {
|
||||
await NotifyAPI.markInternalRead(item.id);
|
||||
emit("read");
|
||||
if (requestToken === loadToken && detail.value) {
|
||||
detail.value = {
|
||||
...detail.value,
|
||||
|
||||
Reference in New Issue
Block a user