From e64f4b83c8f6cd01ea352ad7040e205613ea87d3 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 14 七月 2023 22:39:34 +0800 Subject: [PATCH] update 优化 toggleRowSelection 缺失一个参数警告问题 --- src/layout/components/topBar/search.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/layout/components/topBar/search.vue b/src/layout/components/topBar/search.vue index 3b707e4..9dee360 100644 --- a/src/layout/components/topBar/search.vue +++ b/src/layout/components/topBar/search.vue @@ -87,12 +87,12 @@ title: [...prefixTitle] } if (r.meta && r.meta.title) { - data.title = [...data.title, r.meta.title]; - if (r.redirect !== 'noRedirect') { - // only push the routes with title - // special case: need to exclude parent router without redirect - res.push(data); - } + data.title = [...data.title, r.meta.title]; + if (r.redirect !== 'noRedirect') { + // only push the routes with title + // special case: need to exclude parent router without redirect + res.push(data); + } } // recursive child routes if (r.children) { @@ -114,11 +114,11 @@ const onHandleSelect = (val: any) => { const paths = val.path; if (isHttp(paths)) { - // http(s):// 璺緞鏂扮獥鍙f墦寮� - const pindex = paths.indexOf("http"); - window.open(paths.substring(pindex, paths.length), "_blank"); + // http(s):// 璺緞鏂扮獥鍙f墦寮� + const pindex = paths.indexOf("http"); + window.open(paths.substring(pindex, paths.length), "_blank"); } else { - router.push(paths) + router.push(paths); } state.menuQuery = '' closeSearch(); -- Gitblit v1.9.3