Commit b5c789a2670558453821dbaff039529681c13a5b
1 parent
bb1324a7
防止空路由出现的警告,设置默认path=/
Showing
2 changed files
with
1 additions
and
5 deletions
ruoyi-ui/src/store/modules/permission.js
| ... | ... | @@ -32,10 +32,6 @@ const permission = { |
| 32 | 32 | // 遍历后台传来的路由字符串,转换为组件对象 |
| 33 | 33 | function filterAsyncRouter(asyncRouterMap) { |
| 34 | 34 | return asyncRouterMap.filter(route => { |
| 35 | - if(!route.path){ | |
| 36 | - // 防止空路由出现的警告,设置默认path | |
| 37 | - route.path = '/path'; | |
| 38 | - } | |
| 39 | 35 | if (route.component) { |
| 40 | 36 | // Layout组件特殊处理 |
| 41 | 37 | if (route.component === 'Layout') { | ... | ... |
ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java