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