fix(工作台): 修复工作台项目概览无数据bug

This commit is contained in:
xinxin.wu 2024-11-28 10:14:49 +08:00 committed by Craftsman
parent 2102c34623
commit 4900ae21ad
1 changed files with 9 additions and 8 deletions

View File

@ -135,7 +135,6 @@
options.value.yAxis[0].max = maxAxis;
}
const showSkeleton = ref(false);
const selectAll = computed(() => appStore.projectList.length === innerProjectIds.value.length);
async function initOverViewDetail() {
try {
@ -170,17 +169,19 @@
}
}
function handleProjectChange(shouldEmit = false) {
nextTick(() => {
innerSelectAll.value = selectAll.value;
async function handleProjectChange(shouldEmit = false) {
await nextTick();
innerSelectAll.value = appStore.projectList.length === innerProjectIds.value.length;
await nextTick();
initOverViewDetail();
if (shouldEmit) emit('change');
});
}
function popupVisibleChange(val: boolean) {
if (!val) {
nextTick(() => {
handleProjectChange(true);
});
}
}