This commit is contained in:
王一嘉
2025-07-24 20:40:44 +08:00
parent 9b162d49d0
commit e237f77086
4 changed files with 11 additions and 3 deletions

View File

@@ -45,7 +45,6 @@ const selectActionsheet = async (e) => {
type: e.type,
});
showToast(msg);
emits('success');
} else {
if (type === 0) {
const {msg} = await Api.system.setChildrenRead({
@@ -53,18 +52,19 @@ const selectActionsheet = async (e) => {
type: e.type,
});
showToast(msg);
emits('success');
} else {
const index = SystemStore.message.findIndex(v => v.id === data.id);
SystemStore.message[index].is_read = !SystemStore.message[index].is_read;
}
}
emits('success');
}
const openOpenTypeFun = () => {
const index = SystemStore.message.findIndex(v => v.id === data.id);
SystemStore.message[index].is_read = true;
OpenTypeFun(data);
emits('success');
}
onMounted(() => {