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

@@ -7,6 +7,7 @@ import MessageCard from "../../components/MessageCard.vue";
import useTableQuery from "../../hooks/useTableQuery.js";
import Api from "../../api/index.js";
import {useSystemStore} from "../../pinia/SystemStore/index.js";
import {onShow} from "@dcloudio/uni-app";
const SystemStore = useSystemStore();
const tabs = computed(() => [
@@ -37,6 +38,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
callback: (data) => {
Object.assign(vo, data);
SystemStore.getMessageCount();
}
});
@@ -44,6 +46,10 @@ const changeTab = ({index}) => {
po.type = index;
initFetchData();
}
onShow(() => {
SystemStore.getMessageCount();
})
</script>
<template>

View File

@@ -18,7 +18,7 @@ const {data, home} = defineProps({
}
});
const list = computed(() => [data.comment_arr]?.flatMap(v => v.children ? [v, ...v.children] : [v]));
const list = computed(() => data.comment_arr?.flatMap(v => v.children ? [v, ...v.children] : [v]));
</script>
<template>