From aebfa5b17ae048e6672037478158957aa2b61997 Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 19 Nov 2024 14:15:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=20bug=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/pure/ms-advance-filter/filterDrawer.vue | 5 ++++- frontend/src/views/workbench/homePage/index.vue | 2 +- frontend/src/views/workbench/myCreated/index.vue | 2 +- frontend/src/views/workbench/myFollowed/index.vue | 2 +- frontend/src/views/workbench/myToDo/index.vue | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) 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 @@