fix(任务中心): 权限判定调整
--bug=1047921 --user=白奇 无用例执行任务查询权限-有系统后台任务查询权限 https://www.tapd.cn/55049933/s/1597709
This commit is contained in:
parent
be5ce9de72
commit
38bb3d513a
|
@ -99,7 +99,12 @@
|
|||
);
|
||||
|
||||
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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue