fix(工作台): 修复工作台项目概览无数据bug
This commit is contained in:
parent
2102c34623
commit
4900ae21ad
|
@ -135,7 +135,6 @@
|
||||||
options.value.yAxis[0].max = maxAxis;
|
options.value.yAxis[0].max = maxAxis;
|
||||||
}
|
}
|
||||||
const showSkeleton = ref(false);
|
const showSkeleton = ref(false);
|
||||||
const selectAll = computed(() => appStore.projectList.length === innerProjectIds.value.length);
|
|
||||||
|
|
||||||
async function initOverViewDetail() {
|
async function initOverViewDetail() {
|
||||||
try {
|
try {
|
||||||
|
@ -170,17 +169,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleProjectChange(shouldEmit = false) {
|
async function handleProjectChange(shouldEmit = false) {
|
||||||
nextTick(() => {
|
await nextTick();
|
||||||
innerSelectAll.value = selectAll.value;
|
innerSelectAll.value = appStore.projectList.length === innerProjectIds.value.length;
|
||||||
initOverViewDetail();
|
await nextTick();
|
||||||
if (shouldEmit) emit('change');
|
initOverViewDetail();
|
||||||
});
|
if (shouldEmit) emit('change');
|
||||||
}
|
}
|
||||||
|
|
||||||
function popupVisibleChange(val: boolean) {
|
function popupVisibleChange(val: boolean) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
handleProjectChange(true);
|
nextTick(() => {
|
||||||
|
handleProjectChange(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue