js 数组过滤 filter let res = this.list.filter(item => routeEqual(this.currentRouteObj, item) || item.name === this.$config.homeName)