diff --git a/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue b/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue index fa408d72b3..33d0ea07d6 100644 --- a/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue +++ b/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue @@ -292,7 +292,10 @@ function getListItemByDataIndex(dataIndex: string) { return [...currentConfigList.value, ...(props.customList || [])].find((item) => item.dataIndex === dataIndex); } - async function getUserViewDetail(id: string) { + async function getUserViewDetail(id?: string) { + if (!id) { + return; + } try { const res = await getViewDetail(props.viewType, id); // 全部数据默认显示搜索条件 diff --git a/frontend/src/views/workbench/homePage/index.vue b/frontend/src/views/workbench/homePage/index.vue index 1d0a08ed23..9a2c26d94f 100644 --- a/frontend/src/views/workbench/homePage/index.vue +++ b/frontend/src/views/workbench/homePage/index.vue @@ -2,7 +2,7 @@