fix(工作台): 修复工作台接口测试卡片跳转bug

This commit is contained in:
xinxin.wu 2024-12-18 12:17:09 +08:00 committed by 刘瑞斌
parent ad84447bce
commit 4a209eb5fe
1 changed files with 2 additions and 2 deletions

View File

@ -794,13 +794,13 @@
} }
if (props.selectedProtocols.length > 0 || route.query.home) { if (props.selectedProtocols.length > 0 || route.query.home) {
loadApiList(true); loadApiList(!route.query.home);
} }
} }
const isActivated = computed(() => cacheStore.cacheViews.includes(CacheTabTypeEnum.API_TEST_API_TABLE)); const isActivated = computed(() => cacheStore.cacheViews.includes(CacheTabTypeEnum.API_TEST_API_TABLE));
onBeforeMount(() => { onMounted(() => {
cacheStore.clearCache(); cacheStore.clearCache();
if (!isActivated.value) { if (!isActivated.value) {
onMountedLoad(); onMountedLoad();