Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ops_2024_vue
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ops_2024_vue
Commits
d66d8ec2
Commit
d66d8ec2
authored
Apr 28, 2024
by
heduo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(hd): 暂时隐藏未开发模块
parent
acd6e3e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
src/router/routes/index.ts
src/router/routes/index.ts
+4
-9
No files found.
src/router/routes/index.ts
View file @
d66d8ec2
...
...
@@ -8,14 +8,14 @@ import { t } from '/@/hooks/web/useI18n';
const
modules
=
import
.
meta
.
globEager
(
'
./modules/**/*.ts
'
);
cons
t
routeModuleList
:
AppRouteModule
[]
=
[];
le
t
routeModuleList
:
AppRouteModule
[]
=
[];
const
hideModuleList
:
string
[]
=
[
'
/arbitration
'
,
'
/authorization
'
,
'
/complaints
'
];
Object
.
keys
(
modules
).
forEach
((
key
)
=>
{
const
mod
=
modules
[
key
].
default
||
{};
const
modList
=
Array
.
isArray
(
mod
)
?
[...
mod
]
:
[
mod
];
routeModuleList
.
push
(...
modList
);
});
routeModuleList
=
routeModuleList
.
filter
((
v
)
=>
!
hideModuleList
.
includes
(
v
.
path
));
export
const
asyncRoutes
=
[
PAGE_NOT_FOUND_ROUTE
,
...
routeModuleList
];
export
const
RootRoute
:
AppRouteRecordRaw
=
{
...
...
@@ -37,9 +37,4 @@ export const LoginRoute: AppRouteRecordRaw = {
};
// Basic routing without permission
export
const
basicRoutes
=
[
LoginRoute
,
RootRoute
,
...
mainOutRoutes
,
PAGE_NOT_FOUND_ROUTE
,
];
export
const
basicRoutes
=
[
LoginRoute
,
RootRoute
,
...
mainOutRoutes
,
PAGE_NOT_FOUND_ROUTE
];
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