逻辑错误调整 (#2052)

This commit is contained in:
zayn
2025-06-30 16:04:18 +08:00
committed by GitHub
parent ca24945af6
commit a1c8f6bc55

View File

@@ -107,21 +107,13 @@
})
if (index === route.name) return
if (index.indexOf('http://') > -1 || index.indexOf('https://') > -1) {
if (index === 'Iframe') {
query.url = decodeURIComponent(index)
router.push({
name: 'Iframe',
query,
params
})
return
} else {
window.open(index, '_blank')
return
}
} else {
router.push({ name: index, query, params })
}
if (index === 'Iframe') {
query.url = decodeURIComponent(index)
}
router.push({ name: index, query, params })
}
</script>