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
7d66d8a4
Commit
7d66d8a4
authored
Oct 15, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 更新路由组件路径
parent
b76a638c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
2 deletions
+37
-2
access.ts
apps/web-antd/src/router/access.ts
+5
-2
dashboard.ts
apps/web-antd/src/router/routes/modules/dashboard.ts
+4
-0
system.ts
apps/web-antd/src/router/routes/modules/system.ts
+16
-0
workflow.ts
apps/web-antd/src/router/routes/modules/workflow.ts
+12
-0
No files found.
apps/web-antd/src/router/access.ts
View file @
7d66d8a4
...
@@ -32,7 +32,7 @@ function backMenuToVbenMenu(
...
@@ -32,7 +32,7 @@ function backMenuToVbenMenu(
continue
;
continue
;
}
}
const
{
component
,
children
}
=
route
;
const
{
component
,
children
,
meta
}
=
route
;
let
componentPath
=
''
;
let
componentPath
=
''
;
// 如果是动态组件或异步加载函数,可以提取路径字符串
// 如果是动态组件或异步加载函数,可以提取路径字符串
...
@@ -44,7 +44,10 @@ function backMenuToVbenMenu(
...
@@ -44,7 +44,10 @@ function backMenuToVbenMenu(
const
match
=
component
.
toString
().
match
(
/import
\(
"
(
.*
)
"
\)
/
);
const
match
=
component
.
toString
().
match
(
/import
\(
"
(
.*
)
"
\)
/
);
if
(
match
&&
match
[
1
])
{
if
(
match
&&
match
[
1
])
{
// 替换 '/src' 为 '../views'
// 替换 '/src' 为 '../views'
componentPath
=
match
[
1
].
replace
(
'/src'
,
'..'
);
// componentPath = match[1].replace('/src', '..');
componentPath
=
meta
?.
componentPath
?
meta
.
componentPath
.
replace
(
'#/'
,
'..'
)
:
match
[
1
].
replace
(
'/src'
,
'..'
);
if
(
componentPath
.
includes
(
'?t='
))
{
if
(
componentPath
.
includes
(
'?t='
))
{
componentPath
=
componentPath
.
split
(
'?'
)[
0
]
||
''
;
componentPath
=
componentPath
.
split
(
'?'
)[
0
]
||
''
;
}
}
...
...
apps/web-antd/src/router/routes/modules/dashboard.ts
View file @
7d66d8a4
...
@@ -17,6 +17,8 @@ const routes: RouteRecordRaw[] = [
...
@@ -17,6 +17,8 @@ const routes: RouteRecordRaw[] = [
path
:
'/analytics'
,
path
:
'/analytics'
,
component
:
()
=>
import
(
'#/views/dashboard/analytics/index.vue'
),
component
:
()
=>
import
(
'#/views/dashboard/analytics/index.vue'
),
meta
:
{
meta
:
{
// 添加原始路径信息供构建后使用
componentPath
:
'#/views/dashboard/analytics/index.vue'
,
affixTab
:
true
,
affixTab
:
true
,
icon
:
'lucide:area-chart'
,
icon
:
'lucide:area-chart'
,
title
:
$t
(
'page.dashboard.analytics'
),
title
:
$t
(
'page.dashboard.analytics'
),
...
@@ -27,6 +29,8 @@ const routes: RouteRecordRaw[] = [
...
@@ -27,6 +29,8 @@ const routes: RouteRecordRaw[] = [
path
:
'/workspace'
,
path
:
'/workspace'
,
component
:
()
=>
import
(
'#/views/dashboard/workspace/index.vue'
),
component
:
()
=>
import
(
'#/views/dashboard/workspace/index.vue'
),
meta
:
{
meta
:
{
// 添加原始路径信息供构建后使用
componentPath
:
'#/views/dashboard/workspace/index.vue'
,
icon
:
'carbon:workspace'
,
icon
:
'carbon:workspace'
,
title
:
$t
(
'page.dashboard.workspace'
),
title
:
$t
(
'page.dashboard.workspace'
),
},
},
...
...
apps/web-antd/src/router/routes/modules/system.ts
View file @
7d66d8a4
...
@@ -21,6 +21,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -21,6 +21,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'ant-design:user-outlined'
,
icon
:
'ant-design:user-outlined'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/auth/user/list.vue'
,
},
},
},
},
{
{
...
@@ -32,6 +33,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -32,6 +33,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'eos-icons:role-binding-outlined'
,
icon
:
'eos-icons:role-binding-outlined'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/auth/role/list.vue'
,
},
},
},
},
{
{
...
@@ -43,6 +45,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -43,6 +45,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'lucide:square-menu'
,
icon
:
'lucide:square-menu'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/auth/menu/list.vue'
,
},
},
},
},
{
{
...
@@ -54,6 +57,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -54,6 +57,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'mingcute:department-line'
,
icon
:
'mingcute:department-line'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/auth/dept/list.vue'
,
},
},
},
},
{
{
...
@@ -65,6 +69,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -65,6 +69,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'icon-park-outline:appointment'
,
icon
:
'icon-park-outline:appointment'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/auth/post/list.vue'
,
},
},
},
},
{
{
...
@@ -77,6 +82,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -77,6 +82,7 @@ const routes: RouteRecordRaw[] = [
keepAlive
:
true
,
keepAlive
:
true
,
hideInMenu
:
true
,
hideInMenu
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/auth/roleAssign/list.vue'
,
},
},
},
},
],
],
...
@@ -101,6 +107,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -101,6 +107,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'ph:user-list'
,
icon
:
'ph:user-list'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/tenant/list.vue'
,
},
},
},
},
{
{
...
@@ -112,6 +119,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -112,6 +119,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'bx:package'
,
icon
:
'bx:package'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/tenantPackage/list.vue'
,
},
},
},
},
],
],
...
@@ -142,6 +150,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -142,6 +150,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'fluent-mdl2:dictionary'
,
icon
:
'fluent-mdl2:dictionary'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/dict/index.vue'
,
},
},
},
},
{
{
...
@@ -153,6 +162,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -153,6 +162,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'ant-design:setting-outlined'
,
icon
:
'ant-design:setting-outlined'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/config/list.vue'
,
},
},
},
},
{
{
...
@@ -164,6 +174,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -164,6 +174,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'solar:monitor-smartphone-outline'
,
icon
:
'solar:monitor-smartphone-outline'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/client/list.vue'
,
},
},
},
},
{
{
...
@@ -175,6 +186,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -175,6 +186,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'carbon:event-schedule'
,
icon
:
'carbon:event-schedule'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/job/list.vue'
,
},
},
},
},
{
{
...
@@ -186,6 +198,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -186,6 +198,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'carbon:event-schedule'
,
icon
:
'carbon:event-schedule'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/oss/list.vue'
,
},
},
},
},
{
{
...
@@ -207,6 +220,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -207,6 +220,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'arcticons:one-hand-operation'
,
icon
:
'arcticons:one-hand-operation'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/log/sysLog/list.vue'
,
},
},
},
},
{
{
...
@@ -218,6 +232,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -218,6 +232,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'streamline:interface-login-dial-pad-finger-password-dial-pad-dot-finger'
,
icon
:
'streamline:interface-login-dial-pad-finger-password-dial-pad-dot-finger'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/log/loginLog/list.vue'
,
},
},
},
},
{
{
...
@@ -229,6 +244,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -229,6 +244,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'arcticons:one-hand-operation'
,
icon
:
'arcticons:one-hand-operation'
,
keepAlive
:
true
,
keepAlive
:
true
,
permission
:
[
'dashboard'
],
permission
:
[
'dashboard'
],
componentPath
:
'#/views/system/job/jobLog/list.vue'
,
},
},
},
},
],
],
...
...
apps/web-antd/src/router/routes/modules/workflow.ts
View file @
7d66d8a4
...
@@ -24,6 +24,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -24,6 +24,7 @@ const routes: RouteRecordRaw[] = [
title
:
'请假申请'
,
title
:
'请假申请'
,
icon
:
'fluent-mdl2:leave-user'
,
icon
:
'fluent-mdl2:leave-user'
,
noCache
:
false
,
noCache
:
false
,
componentPath
:
'#/views/workflow/leave/index.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -53,6 +54,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -53,6 +54,7 @@ const routes: RouteRecordRaw[] = [
title
:
'流程分类'
,
title
:
'流程分类'
,
icon
:
'tabler:category-plus'
,
icon
:
'tabler:category-plus'
,
noCache
:
false
,
noCache
:
false
,
componentPath
:
'#/views/workflow/category/index.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -66,6 +68,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -66,6 +68,7 @@ const routes: RouteRecordRaw[] = [
title
:
'流程表达式'
,
title
:
'流程表达式'
,
icon
:
'material-symbols:regular-expression-rounded'
,
icon
:
'material-symbols:regular-expression-rounded'
,
noCache
:
false
,
noCache
:
false
,
componentPath
:
'#/views/workflow/spel/index.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -79,6 +82,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -79,6 +82,7 @@ const routes: RouteRecordRaw[] = [
title
:
'流程定义'
,
title
:
'流程定义'
,
icon
:
'fluent-mdl2:build-definition'
,
icon
:
'fluent-mdl2:build-definition'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/processDefinition/index.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -108,6 +112,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -108,6 +112,7 @@ const routes: RouteRecordRaw[] = [
title
:
'流程实例'
,
title
:
'流程实例'
,
icon
:
'ri:instance-line'
,
icon
:
'ri:instance-line'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/processInstance/index.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -121,6 +126,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -121,6 +126,7 @@ const routes: RouteRecordRaw[] = [
title
:
'待办任务'
,
title
:
'待办任务'
,
icon
:
'ri:todo-line'
,
icon
:
'ri:todo-line'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/task/allTaskWaiting.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -138,6 +144,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -138,6 +144,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'fluent-mdl2:flow'
,
icon
:
'fluent-mdl2:flow'
,
noCache
:
true
,
noCache
:
true
,
hideInMenu
:
true
,
hideInMenu
:
true
,
componentPath
:
'#/views/workflow/processDefinition/design.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -152,6 +159,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -152,6 +159,7 @@ const routes: RouteRecordRaw[] = [
icon
:
'flat-color-icons:leave'
,
icon
:
'flat-color-icons:leave'
,
noCache
:
true
,
noCache
:
true
,
hideInMenu
:
true
,
hideInMenu
:
true
,
componentPath
:
'#/views/workflow/leave/index.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -180,6 +188,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -180,6 +188,7 @@ const routes: RouteRecordRaw[] = [
title
:
'我发起的'
,
title
:
'我发起的'
,
icon
:
'ic:round-launch'
,
icon
:
'ic:round-launch'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/task/myDocument.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -193,6 +202,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -193,6 +202,7 @@ const routes: RouteRecordRaw[] = [
title
:
'我的待办'
,
title
:
'我的待办'
,
icon
:
'ri:todo-line'
,
icon
:
'ri:todo-line'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/task/taskWaiting.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -206,6 +216,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -206,6 +216,7 @@ const routes: RouteRecordRaw[] = [
title
:
'我的已办'
,
title
:
'我的已办'
,
icon
:
'material-symbols:cloud-done-outline-rounded'
,
icon
:
'material-symbols:cloud-done-outline-rounded'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/task/taskFinish.vue'
,
// link: null,
// link: null,
},
},
},
},
...
@@ -219,6 +230,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -219,6 +230,7 @@ const routes: RouteRecordRaw[] = [
title
:
'我的抄送'
,
title
:
'我的抄送'
,
icon
:
'mdi:cc-outline'
,
icon
:
'mdi:cc-outline'
,
noCache
:
true
,
noCache
:
true
,
componentPath
:
'#/views/workflow/task/taskCopyList.vue'
,
// link: null,
// link: null,
},
},
},
},
...
...
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