fix: route title i18n in global search is not compatible (#3665)

#### What type of PR is this?

/kind bug
/area console
/cherry-pick release-2.4

#### What this PR does / why we need it:

修复后台全局搜索中关于 Console 路由的文字没有适配 i18n 的问题。

#### Which issue(s) this PR fixes:

Fixes #3664 

#### Special notes for your reviewer:

<img width="741" alt="image" src="https://user-images.githubusercontent.com/21301288/229279243-4b727cc7-1790-41b3-a170-4958ce1f65a8.png">

#### Does this PR introduce a user-facing change?

```release-note
修复后台全局搜索中关于 Console 路由的文字没有适配 i18n 的问题。
```
pull/3668/head
Ryan Wang 2023-04-03 11:08:14 +08:00 committed by GitHub
parent f8e405c8ed
commit 0b21758347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ const handleBuildSearchIndex = () => {
routes.forEach((route) => {
fuse.add({
title: route.meta?.title as string,
title: t(route.meta?.title as string),
icon: {
component: markRaw(IconLink),
},