From e79a9cf7978e0ba199bb7e0ea9b89e52bbe7522a Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期四, 13 七月 2023 20:42:32 +0800
Subject: [PATCH] !26 update src/api/types.ts. Merge pull request !26 from Admin/N/A
---
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