Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas3-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas3-fe
Commits
df530d34
Commit
df530d34
authored
Dec 30, 2021
by
guxukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 加入国际化
parent
e7e9e5d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
default-layout.vue
src/shared/layouts/default-layout.vue
+3
-2
layout.ts
src/shared/store/modules/layout.ts
+1
-0
layout.ts
src/shared/types/layout.ts
+1
-0
No files found.
src/shared/layouts/default-layout.vue
View file @
df530d34
...
@@ -107,8 +107,8 @@
...
@@ -107,8 +107,8 @@
class=
"flex flex-col pb-0 bg-gray-50 dark:bg-[#151930] dark:text-white transition transition-all duration-300"
class=
"flex flex-col pb-0 bg-gray-50 dark:bg-[#151930] dark:text-white transition transition-all duration-300"
>
>
<el-breadcrumb
:separator-icon=
"ArrowRight"
class=
"pl-1"
>
<el-breadcrumb
:separator-icon=
"ArrowRight"
class=
"pl-1"
>
<el-breadcrumb-item
v-for=
"(item, index) in breadcrumbList"
:key=
"index"
:to=
"{
path: item.path
}"
>
<el-breadcrumb-item
v-for=
"(item, index) in breadcrumbList"
:key=
"index"
:to=
"{
name: item.name
}"
>
<span
class=
"text-gray-700 dark:text-white"
>
{{
item.title
}}
</span>
<span
class=
"text-gray-700 dark:text-white"
>
{{
$t(`baas.menu.${item.name}`)
}}
</span>
</el-breadcrumb-item>
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
<div
class=
"flex-grow mt-4 h-full overflow-y-auto rounded-t-md border"
>
<div
class=
"flex-grow mt-4 h-full overflow-y-auto rounded-t-md border"
>
...
@@ -189,6 +189,7 @@ onBeforeRouteUpdate((to, from) => {
...
@@ -189,6 +189,7 @@ onBeforeRouteUpdate((to, from) => {
title
:
to
.
meta
.
title
!
,
title
:
to
.
meta
.
title
!
,
path
:
to
.
path
,
path
:
to
.
path
,
level
:
to
.
meta
.
level
,
level
:
to
.
meta
.
level
,
name
:
to
.
name
as
string
,
})
})
}
}
layoutStore
.
$patch
({
layoutStore
.
$patch
({
...
...
src/shared/store/modules/layout.ts
View file @
df530d34
...
@@ -9,6 +9,7 @@ export const useLayout = defineStore('layout', {
...
@@ -9,6 +9,7 @@ export const useLayout = defineStore('layout', {
title
:
'Home'
,
title
:
'Home'
,
level
:
1
,
level
:
1
,
path
:
'/'
,
path
:
'/'
,
name
:
'home'
,
},
},
],
],
currentLocale
:
'zh'
,
currentLocale
:
'zh'
,
...
...
src/shared/types/layout.ts
View file @
df530d34
...
@@ -7,4 +7,5 @@ export type BreadcrumbType = {
...
@@ -7,4 +7,5 @@ export type BreadcrumbType = {
title
:
string
title
:
string
level
:
number
level
:
number
path
:
string
path
:
string
name
:
string
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment