Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
d983f8bc
Commit
d983f8bc
authored
Nov 22, 2022
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单资源路径调整
parent
e61d5c0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
src/router/function.js
src/router/function.js
+17
-4
No files found.
src/router/function.js
View file @
d983f8bc
...
@@ -284,21 +284,34 @@ var menuToRouter = (menu) => {
...
@@ -284,21 +284,34 @@ var menuToRouter = (menu) => {
e
.
component
=
()
=>
import
(
"
../page/parent/parent.vue
"
);
e
.
component
=
()
=>
import
(
"
../page/parent/parent.vue
"
);
menuToRouter
(
e
.
children
);
menuToRouter
(
e
.
children
);
}
else
if
(
e
.
children
&&
e
.
menuType
!==
0
)
{
}
else
if
(
e
.
children
&&
e
.
menuType
!==
0
)
{
console
.
log
(
`@/page/main
${
e
.
path
}
/index.vue`
);
//叶子层级需要加载到对应文件
//叶子层级需要加载到对应文件
//对首页做兼容
//对首页做兼容
if
(
e
.
source
){
console
.
log
(
`@/page/main
${
e
.
source
}
/index.vue`
);
e
.
component
=
getViews
(
e
.
source
);
}
else
{
console
.
log
(
`@/page/main
${
e
.
path
}
/index.vue`
);
e
.
component
=
getViews
(
e
.
path
);
e
.
component
=
getViews
(
e
.
path
);
}
menuToRouter
(
e
.
children
);
menuToRouter
(
e
.
children
);
}
else
{
}
else
{
console
.
log
(
`@/page/main
${
e
.
path
}
/index.vue`
);
console
.
log
(
`@/page/main
${
e
.
path
}
/index.vue`
);
//叶子层级需要加载到对应文件
//叶子层级需要加载到对应文件
//对首页做兼容
//对首页做兼容
if
(
e
.
path
==
"
/
"
)
{
if
(
e
.
path
==
"
/
"
)
{
if
(
e
.
source
){
e
.
component
=
()
=>
import
(
`../page/main/
${
e
.
source
}
/index.vue`
);
}
else
{
e
.
component
=
()
=>
import
(
"
../page/main/index/index.vue
"
);
e
.
component
=
()
=>
import
(
"
../page/main/index/index.vue
"
);
}
}
else
{
}
else
{
if
(
e
.
source
){
e
.
component
=
getViews
(
e
.
source
);
}
else
{
e
.
component
=
getViews
(
e
.
path
);
e
.
component
=
getViews
(
e
.
path
);
}
}
}
}
}
});
});
};
};
...
...
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