Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
binfast-admin-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
binfast
binfast-admin-view
Commits
c4afc772
Commit
c4afc772
authored
Oct 15, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 测试查看路由
parent
4ecf6879
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.html
apps/web-antd/index.html
+2
-2
generate-routes-backend.ts
packages/utils/src/helpers/generate-routes-backend.ts
+1
-0
No files found.
apps/web-antd/index.html
View file @
c4afc772
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
<title><
%=
VITE_APP_TITLE
%
></title>
<title><
%=
VITE_APP_TITLE
%
></title>
<link
rel=
"icon"
href=
"/favicon.ico"
/>
<link
rel=
"icon"
href=
"/favicon.ico"
/>
<script>
<
!-- <
script>
// 生产环境下注入百度统计
// 生产环境下注入百度统计
if (window._VBEN_ADMIN_PRO_APP_CONF_) {
if (window._VBEN_ADMIN_PRO_APP_CONF_) {
var _hmt = _hmt || [];
var _hmt = _hmt || [];
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
s.parentNode.insertBefore(hm, s);
s.parentNode.insertBefore(hm, s);
})();
})();
}
}
</script>
</script>
-->
</head>
</head>
<body>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
...
...
packages/utils/src/helpers/generate-routes-backend.ts
View file @
c4afc772
...
@@ -42,6 +42,7 @@ function convertRoutes(
...
@@ -42,6 +42,7 @@ function convertRoutes(
layoutMap
:
ComponentRecordType
,
layoutMap
:
ComponentRecordType
,
pageMap
:
ComponentRecordType
,
pageMap
:
ComponentRecordType
,
):
RouteRecordRaw
[]
{
):
RouteRecordRaw
[]
{
console
.
log
(
'[convertRoutes routes]'
,
routes
);
return
mapTree
(
routes
,
(
node
)
=>
{
return
mapTree
(
routes
,
(
node
)
=>
{
const
route
=
node
as
unknown
as
RouteRecordRaw
;
const
route
=
node
as
unknown
as
RouteRecordRaw
;
const
{
component
,
name
}
=
node
;
const
{
component
,
name
}
=
node
;
...
...
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