fix(任务中心): 权限判定调整

--bug=1047921 --user=白奇 无用例执行任务查询权限-有系统后台任务查询权限 https://www.tapd.cn/55049933/s/1597709
This commit is contained in:
baiqi 2024-10-24 18:22:02 +08:00 committed by Craftsman
parent be5ce9de72
commit 38bb3d513a
1 changed files with 6 additions and 1 deletions

View File

@ -99,7 +99,12 @@
); );
onBeforeMount(async () => { onBeforeMount(async () => {
activeTab.value = (await getItem('taskCenterActiveTab')) || TaskCenterEnum.CASE; const localTab = await getItem('taskCenterActiveTab');
if (tabList.value.some((e) => e.value === localTab)) {
activeTab.value = (localTab as TaskCenterEnum) || TaskCenterEnum.CASE;
} else {
activeTab.value = tabList.value[0].value;
}
}); });
</script> </script>