fix(工作台): 修复工作台柱状图x轴label展示bug

This commit is contained in:
xinxin.wu 2024-11-25 11:20:14 +08:00 committed by 刘瑞斌
parent 18c7e5ff86
commit 2a2f57bb52
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@
import { contentTabList } from '@/config/workbench'; import { contentTabList } from '@/config/workbench';
import { useI18n } from '@/hooks/useI18n'; import { useI18n } from '@/hooks/useI18n';
import useAppStore from '@/store/modules/app'; import useAppStore from '@/store/modules/app';
import { characterLimit } from '@/utils'; import { characterLimit, sleep } from '@/utils';
import type { OverViewOfProject, SelectedCardItem, TimeFormParams } from '@/models/workbench/homePage'; import type { OverViewOfProject, SelectedCardItem, TimeFormParams } from '@/models/workbench/homePage';
@ -241,6 +241,7 @@
watch([() => props.refreshKey, () => projectId.value], async () => { watch([() => props.refreshKey, () => projectId.value], async () => {
await nextTick(); await nextTick();
initOverViewMemberDetail(); initOverViewMemberDetail();
await sleep(50);
if (props.item.projectIds.length) { if (props.item.projectIds.length) {
getMemberOptions(); getMemberOptions();
} }

View File

@ -132,6 +132,7 @@ export function getCommonBarOptions(hasRoom: boolean, color: string[]): Record<s
type: 'category', type: 'category',
data: [], data: [],
axisLabel: { axisLabel: {
show: true,
color: '#646466', color: '#646466',
}, },
axisTick: { axisTick: {