From 6b988bd582bfcd17fee48c476a5a6e5cc172b0d5 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期三, 12 三月 2025 10:08:33 +0800 Subject: [PATCH] dev-2 --- 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