From e181f04c642204e79749af93fa921875ff6c21ba Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期二, 20 五月 2025 10:46:35 +0800 Subject: [PATCH] refactor(qms): 重构趋势图展示逻辑 --- src/layout/components/TopBar/search.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layout/components/TopBar/search.vue b/src/layout/components/TopBar/search.vue index 62322a4..182e84a 100644 --- a/src/layout/components/TopBar/search.vue +++ b/src/layout/components/TopBar/search.vue @@ -54,7 +54,7 @@ const openSearch = () => { state.menuQuery = ''; state.isShowSearch = true; - state.menuList = generateRoutes(routes.value); + state.menuList = generateRoutes(routes.value as any); nextTick(() => { setTimeout(() => { layoutMenuAutocompleteRef.value.focus(); @@ -66,7 +66,7 @@ state.isShowSearch = false; }; // 鑿滃崟鎼滅储鏁版嵁杩囨护 -const menuSearch = (queryString: string, cb: Function) => { +const menuSearch = (queryString: string, cb: (options: any[]) => void) => { let options = state.menuList.filter((item) => { return item.title.indexOf(queryString) > -1; }); @@ -134,6 +134,7 @@ .layout-search-dialog { position: relative; :deep(.el-dialog) { + padding: 0; .el-dialog__header, .el-dialog__body { display: none; -- Gitblit v1.9.3