fix: 修复多级路由的组件路径错误导致页面404问题
This commit is contained in:
@@ -64,9 +64,9 @@ public class RouteBO {
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 外链路径
|
||||
* 跳转路径
|
||||
*/
|
||||
private String redirectUrl;
|
||||
private String redirect;
|
||||
|
||||
/**
|
||||
* 拥有路由的权限
|
||||
|
||||
@@ -131,7 +131,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
||||
routeVO.setName(routeName); // 根据name路由跳转 this.$router.push({name:xxx})
|
||||
}
|
||||
routeVO.setPath(menu.getPath()); // 根据path路由跳转 this.$router.push({path:xxx})
|
||||
routeVO.setRedirect(menu.getRedirectUrl());
|
||||
routeVO.setRedirect(menu.getRedirect());
|
||||
routeVO.setComponent(menu.getComponent());
|
||||
|
||||
RouteVO.Meta meta = new RouteVO.Meta();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<result property="parentId" column="parent_id" jdbcType="BIGINT"/>
|
||||
<result property="path" column="path" jdbcType="VARCHAR"/>
|
||||
<result property="component" column="component" jdbcType="VARCHAR"/>
|
||||
<result property="redirectUrl" column="redirect_url" jdbcType="VARCHAR"/>
|
||||
<result property="redirect" column="redirect" jdbcType="VARCHAR"/>
|
||||
<result property="icon" column="icon" jdbcType="VARCHAR"/>
|
||||
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
||||
<result property="visible" column="visible" jdbcType="BOOLEAN"/>
|
||||
@@ -32,7 +32,7 @@
|
||||
t1.icon,
|
||||
t1.sort,
|
||||
t1.visible,
|
||||
t1.redirect_url,
|
||||
t1.redirect,
|
||||
t1.type,
|
||||
t3.code
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user