update
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user