fix: 修复点击外链会跳转两次的问题 (#1133)

This commit is contained in:
一万 2024-05-08 15:59:32 +08:00 committed by GitHub
parent fae4924102
commit 3ca9a7b5bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 26 deletions

View File

@ -146,30 +146,6 @@ const frameRouter = {
rank: frame rank: frame
}, },
children: [ 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", path: "/iframe/embedded",
meta: { meta: {
@ -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"]
}
}
]
} }
] ]
}; };

View File

@ -53,7 +53,6 @@ nextTick(() => {
</div> </div>
<el-menu <el-menu
ref="menuRef" ref="menuRef"
router
mode="horizontal" mode="horizontal"
popper-class="pure-scrollbar" popper-class="pure-scrollbar"
class="horizontal-header-menu" class="horizontal-header-menu"

View File

@ -99,7 +99,6 @@ onBeforeUnmount(() => {
:class="[device === 'mobile' ? 'mobile' : 'pc']" :class="[device === 'mobile' ? 'mobile' : 'pc']"
> >
<el-menu <el-menu
router
unique-opened unique-opened
mode="vertical" mode="vertical"
popper-class="pure-scrollbar" popper-class="pure-scrollbar"