1
0
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:
wzc520pyf 2022-03-24 23:11:28 +08:00
parent 7ddfe81749
commit 21624cf9c0

View File

@ -57,7 +57,7 @@ export default {
},
handleLink(item) {
const { redirect, path } = item
if (redirect) {
if (redirect && typeof redirect !== 'function') {
this.$router.push(redirect)
return
}