diff --git a/src/libs/util.js b/src/libs/util.js index 1457b2010..e96123ce0 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -122,7 +122,7 @@ export const getTagNavListFromLocalstorage = () => { * @param {Array} routers 路由列表数组 * @description 用于找到路由列表中name为home的对象 */ -export const getHomeRoute = (routers, homeName = 'home') => { +export const getHomeRoute = (routers, homeName = config.homeName) => { let i = -1 let len = routers.length let homeRoute = {}