Skip to content

Commit a1c8f6b

Browse files
authored
逻辑错误调整 (#2052)
1 parent ca24945 commit a1c8f6b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

web/src/view/layout/aside/headMode.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,13 @@
107107
})
108108
if (index === route.name) return
109109
if (index.indexOf('http://') > -1 || index.indexOf('https://') > -1) {
110-
if (index === 'Iframe') {
111-
query.url = decodeURIComponent(index)
112-
router.push({
113-
name: 'Iframe',
114-
query,
115-
params
116-
})
117-
return
118-
} else {
119110
window.open(index, '_blank')
120111
return
121-
}
122-
} else {
123-
router.push({ name: index, query, params })
124112
}
113+
if (index === 'Iframe') {
114+
query.url = decodeURIComponent(index)
115+
}
116+
router.push({ name: index, query, params })
125117
}
126118
</script>
127119

0 commit comments

Comments
 (0)