mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
fix[Breadcurmb]: 修复router的redirect使用函数作为参数时, 点击面包屑导致页面空白的问题
This commit is contained in:
parent
7ddfe81749
commit
5ba88ec53b
@ -57,7 +57,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleLink(item) {
|
handleLink(item) {
|
||||||
const { redirect, path } = item
|
const { redirect, path } = item
|
||||||
if (redirect) {
|
if (redirect && typeof redirect !== 'function') {
|
||||||
this.$router.push(redirect)
|
this.$router.push(redirect)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user