Skip to content

Commit

Permalink
fix: 修复点击外链会跳转两次的问题 (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten-K authored May 8, 2024
1 parent fae4924 commit 3ca9a7b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
48 changes: 24 additions & 24 deletions mock/asyncRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,30 +146,6 @@ const frameRouter = {
rank: frame
},
children: [
{
path: "/iframe/external",
meta: {
title: "menus.pureExternalDoc"
},
children: [
{
path: "/external",
name: "https://pure-admin.github.io/pure-admin-doc",
meta: {
title: "menus.pureExternalLink",
roles: ["admin", "common"]
}
},
{
path: "/pureUtilsLink",
name: "https://pure-admin-utils.netlify.app/",
meta: {
title: "menus.pureUtilsLink",
roles: ["admin", "common"]
}
}
]
},
{
path: "/iframe/embedded",
meta: {
Expand Down Expand Up @@ -257,6 +233,30 @@ const frameRouter = {
}
}
]
},
{
path: "/iframe/external",
meta: {
title: "menus.pureExternalDoc"
},
children: [
{
path: "/external",
name: "https://pure-admin.github.io/pure-admin-doc",
meta: {
title: "menus.pureExternalLink",
roles: ["admin", "common"]
}
},
{
path: "/pureUtilsLink",
name: "https://pure-admin-utils.netlify.app/",
meta: {
title: "menus.pureUtilsLink",
roles: ["admin", "common"]
}
}
]
}
]
};
Expand Down
1 change: 0 additions & 1 deletion src/layout/components/lay-sidebar/NavHorizontal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ nextTick(() => {
</div>
<el-menu
ref="menuRef"
router
mode="horizontal"
popper-class="pure-scrollbar"
class="horizontal-header-menu"
Expand Down
1 change: 0 additions & 1 deletion src/layout/components/lay-sidebar/NavVertical.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ onBeforeUnmount(() => {
:class="[device === 'mobile' ? 'mobile' : 'pc']"
>
<el-menu
router
unique-opened
mode="vertical"
popper-class="pure-scrollbar"
Expand Down

0 comments on commit 3ca9a7b

Please sign in to comment.