fix(工作台): 修复工作台柱状图x轴label展示bug
This commit is contained in:
parent
18c7e5ff86
commit
2a2f57bb52
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue