fix: 默认数据修改

master
xjs 2025-05-28 14:51:22 +08:00
parent 0c41b523aa
commit 3a2899295e
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@
}, },
); );
const offlineTotal = ref<any>({}) const offlineTotal = ref<any>(0)
const initData = () => { const initData = () => {
if (askSectionData.value.offline && askSectionData.value.offline.length > 0) { if (askSectionData.value.offline && askSectionData.value.offline.length > 0) {

View File

@ -64,7 +64,7 @@
const askSectionData = inject("askSectionData", ref<{ online: any[]; scource: any[] }>({ online: [], scource: [] })); const askSectionData = inject("askSectionData", ref<{ online: any[]; scource: any[] }>({ online: [], scource: [] }));
const chartData = ref<any[]>([]); const chartData = ref<any[]>([]);
const onlineTotal = ref<any>({}); const onlineTotal = ref<any>(0);
watch( watch(
() => askSectionData.value, () => askSectionData.value,