From 1eda36201af83f63f4f33afef109730895956aa2 Mon Sep 17 00:00:00 2001 From: LiuHao <liuhaoai545@gmail> Date: 星期五, 21 四月 2023 11:17:07 +0800 Subject: [PATCH] update code style --- 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