From e7529fbb8ff56bddef9cbf9b2b712d2c185cacf2 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 25 八月 2023 12:58:52 +0800 Subject: [PATCH] update 优化 登录页面redirect重定向功能 --- 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