Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
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
finance-oa
finance-manage
Commits
b5c789a2
Commit
b5c789a2
authored
May 26, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止空路由出现的警告,设置默认path=/
parent
bb1324a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
ruoyi-ui/src/store/modules/permission.js
ruoyi-ui/src/store/modules/permission.js
+0
-4
ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java
...ruoyi/project/system/service/impl/SysMenuServiceImpl.java
+1
-1
No files found.
ruoyi-ui/src/store/modules/permission.js
View file @
b5c789a2
...
...
@@ -32,10 +32,6 @@ const permission = {
// 遍历后台传来的路由字符串,转换为组件对象
function
filterAsyncRouter
(
asyncRouterMap
)
{
return
asyncRouterMap
.
filter
(
route
=>
{
if
(
!
route
.
path
){
// 防止空路由出现的警告,设置默认path
route
.
path
=
'
/path
'
;
}
if
(
route
.
component
)
{
// Layout组件特殊处理
if
(
route
.
component
===
'
Layout
'
)
{
...
...
ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java
View file @
b5c789a2
...
...
@@ -317,7 +317,7 @@ public class SysMenuServiceImpl implements ISysMenuService
// 非外链并且是一级目录(类型为菜单)
else
if
(
isMeunFrame
(
menu
))
{
routerPath
=
StringUtils
.
EMPTY
;
routerPath
=
"/"
;
}
return
routerPath
;
}
...
...
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