逻辑错误调整 (#2052)
This commit is contained in:
@@ -107,21 +107,13 @@
|
|||||||
})
|
})
|
||||||
if (index === route.name) return
|
if (index === route.name) return
|
||||||
if (index.indexOf('http://') > -1 || index.indexOf('https://') > -1) {
|
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')
|
window.open(index, '_blank')
|
||||||
return
|
return
|
||||||
}
|
|
||||||
} else {
|
|
||||||
router.push({ name: index, query, params })
|
|
||||||
}
|
}
|
||||||
|
if (index === 'Iframe') {
|
||||||
|
query.url = decodeURIComponent(index)
|
||||||
|
}
|
||||||
|
router.push({ name: index, query, params })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user