fix duration time

This commit is contained in:
Fine 2022-08-15 14:37:32 +08:00
parent c1f5c471ce
commit db1d4640cf

View File

@ -82,7 +82,7 @@ const graph = computed(() => props.data.graph || {});
const dashboardStore = useDashboardStore(); const dashboardStore = useDashboardStore();
const appStore = useAppStoreWithOut(); const appStore = useAppStoreWithOut();
const content = computed(() => { const content = computed(() => {
const text = [appStore.duration.start, appStore.duration.end] const text = [appStore.durationRow.start, appStore.durationRow.end]
.map((date: Date) => tf(date, "YYYY-MM-DD HH:mm")) .map((date: Date) => tf(date, "YYYY-MM-DD HH:mm"))
.join(` ~ `); .join(` ~ `);
return text; return text;