!88 refactor(layout): 优化外部链接跳转逻辑

Merge pull request !88 from mazeyang1/master
pull/5/head
stylefeng 2025-04-09 08:47:15 +00:00 committed by Gitee
commit bc4a6d92e3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 3 deletions

View File

@ -76,9 +76,7 @@ const changeApp = item => {
window.open(href, '_blank'); window.open(href, '_blank');
} else { } else {
if (isExternalLink(path.value)) { if (isExternalLink(path.value)) {
const { href } = router.resolve({ const href = path.value;
path: path.value
});
window.open(href, '_blank'); window.open(href, '_blank');
} else { } else {
router.push(path.value); router.push(path.value);