mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
fix: [当router的redirect使用函数作为参数时, 点击面包屑导致页面空白(原因是Breadcrumb组件的handleLink方法直接把函数压入了$router)]
This commit is contained in:
parent
7ddfe81749
commit
21624cf9c0
@ -57,7 +57,7 @@ export default {
|
||||
},
|
||||
handleLink(item) {
|
||||
const { redirect, path } = item
|
||||
if (redirect) {
|
||||
if (redirect && typeof redirect !== 'function') {
|
||||
this.$router.push(redirect)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user