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
354ba0fa
Commit
354ba0fa
authored
Jan 04, 2022
by
guxukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 菜单国际化
parent
79be3355
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
9 deletions
+14
-9
index.ts
src/pages/account/router/index.ts
+1
-1
index.ts
src/pages/federation/router/index.ts
+1
-1
index.ts
src/pages/organization/router/index.ts
+2
-1
index.ts
src/pages/super/router/index.ts
+1
-1
routes.json
src/pages/system/json/routes.json
+3
-2
index.ts
src/pages/system/router/index.ts
+2
-3
index.vue
...ges/system/views/fixed/settings/user-management/index.vue
+3
-0
shims-router.d.ts
src/shims-router.d.ts
+1
-0
No files found.
src/pages/account/router/index.ts
View file @
354ba0fa
...
...
@@ -9,7 +9,7 @@ export const formatRoute = arr => {
children
:
formatRoute
(
_
.
children
??
[]),
}
if
(
_
.
meta
.
element
)
{
res
.
component
=
()
=>
import
(
`@account/views/
cropped
/
${
_
.
meta
.
element
}
`
)
||
null
res
.
component
=
()
=>
import
(
`@account/views/
${
_
.
meta
.
fixed
?
'fixed'
:
'cropped'
}
/
${
_
.
meta
.
element
}
`
)
||
null
}
else
{
res
.
component
=
()
=>
import
(
`@shared/layouts/pure-layout.vue`
)
}
...
...
src/pages/federation/router/index.ts
View file @
354ba0fa
...
...
@@ -9,7 +9,7 @@ export const formatRoute = arr => {
children
:
formatRoute
(
_
.
children
??
[]),
}
if
(
_
.
meta
.
element
)
{
res
.
component
=
()
=>
import
(
`@
account/views/cropped
/
${
_
.
meta
.
element
}
`
)
||
null
res
.
component
=
()
=>
import
(
`@
federation/views/
${
_
.
meta
.
fixed
?
'fixed'
:
'cropped'
}
/
${
_
.
meta
.
element
}
`
)
||
null
}
else
{
res
.
component
=
()
=>
import
(
`@shared/layouts/pure-layout.vue`
)
}
...
...
src/pages/organization/router/index.ts
View file @
354ba0fa
...
...
@@ -9,7 +9,8 @@ export const formatRoute = arr => {
children
:
formatRoute
(
_
.
children
??
[]),
}
if
(
_
.
meta
.
element
)
{
res
.
component
=
()
=>
import
(
`@account/views/cropped/
${
_
.
meta
.
element
}
`
)
||
null
res
.
component
=
()
=>
import
(
`@organization/views/
${
_
.
meta
.
fixed
?
'fixed'
:
'cropped'
}
/
${
_
.
meta
.
element
}
`
)
||
null
}
else
{
res
.
component
=
()
=>
import
(
`@shared/layouts/pure-layout.vue`
)
}
...
...
src/pages/super/router/index.ts
View file @
354ba0fa
...
...
@@ -9,7 +9,7 @@ export const formatRoute = arr => {
children
:
formatRoute
(
_
.
children
??
[]),
}
if
(
_
.
meta
.
element
)
{
res
.
component
=
()
=>
import
(
`@
account/views/cropped
/
${
_
.
meta
.
element
}
`
)
||
null
res
.
component
=
()
=>
import
(
`@
super/views/
${
_
.
meta
.
fixed
?
'fixed'
:
'cropped'
}
/
${
_
.
meta
.
element
}
`
)
||
null
}
else
{
res
.
component
=
()
=>
import
(
`@shared/layouts/pure-layout.vue`
)
}
...
...
src/pages/system/json/routes.json
View file @
354ba0fa
...
...
@@ -428,9 +428,10 @@
"path"
:
"user-management"
,
"name"
:
"user-management"
,
"meta"
:
{
"title"
:
"用户管理"
,
"code"
:
"auth.baas.setting.user"
,
"element"
:
"
home
/index.vue"
,
"element"
:
"
settings/user-management
/index.vue"
,
"level"
:
2
,
"showInAsideMenu"
:
true
"showInAsideMenu"
:
true
,
"fixed"
:
true
}
},
{
...
...
src/pages/system/router/index.ts
View file @
354ba0fa
import
{
createRouter
,
createWebHistory
}
from
'vue-router'
import
{
createRouter
,
createWebHistory
,
RouteRecordRaw
}
from
'vue-router'
import
{
LOOKUP_ROUTES
,
FIXED_ROUTES
,
SYSTEM_ROUTES
}
from
'@shared/router/constants'
import
{
zookeeper
}
from
'@shared/router/zookeeper'
...
...
@@ -10,7 +10,7 @@ export const formatRoute = arr => {
children
:
formatRoute
(
_
.
children
??
[]),
}
if
(
_
.
meta
.
element
)
{
res
.
component
=
()
=>
import
(
`@
account/views/cropped
/
${
_
.
meta
.
element
}
`
)
||
null
res
.
component
=
()
=>
import
(
`@
system/views/
${
_
.
meta
.
fixed
?
'fixed'
:
'cropped'
}
/
${
_
.
meta
.
element
}
`
)
||
null
}
else
{
res
.
component
=
()
=>
import
(
`@shared/layouts/pure-layout.vue`
)
}
...
...
@@ -18,7 +18,6 @@ export const formatRoute = arr => {
})
}
export
const
CROPPED_ROUTES
=
formatRoute
(
require
(
`@system/json/routes.json`
).
children
)
const
routes
=
[
{
path
:
'/'
,
...
...
src/pages/system/views/fixed/settings/user-management/index.vue
0 → 100644
View file @
354ba0fa
<
template
>
<div></div>
</
template
>
src/shims-router.d.ts
View file @
354ba0fa
...
...
@@ -5,5 +5,6 @@ declare module 'vue-router' {
title
?:
string
level
?:
number
showInAsideMenu
?:
boolean
fixed
?:
boolean
}
}
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