Skip to content

Commit

Permalink
Merge pull request #138 from TencentCloudBase/feat/jayjauan-aegis
Browse files Browse the repository at this point in the history
修正自定义菜单跳外链时#的问题
  • Loading branch information
jayjduan authored Nov 17, 2021
2 parents 965cedd + 6a38cf6 commit 0997d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/admin/src/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const Layout: React.FC<any> = (props) => {
// 链接菜单,外跳
if (menuItemProps.isUrl) {
return (
<a target="_blank" href={menuItemProps.itemPath}>
<a target="_blank" href={decodeURIComponent(menuItemProps.itemPath)}>
{defaultDom}
</a>
)
Expand Down Expand Up @@ -262,7 +262,7 @@ const mapCustomMenuTree = (node: CustomMenuItem): any => {
key: node.id,
authority: 'isLogin',
name: node.title,
path: node.microAppID ? `/project/microapp/${node.microAppID}` : node.link,
path: node.microAppID ? `/project/microapp/${node.microAppID}` : encodeURIComponent(node.link!),
component: './project/microapp/index',
children: [],
icon: <AppstoreTwoTone />,
Expand Down

0 comments on commit 0997d66

Please sign in to comment.