解决bug:页面搜索菜单,切换的时候标题不变
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<span v-if="device === 'desktop'"></span>
|
||||
<span v-else>{{ systemTitle }}</span>
|
||||
|
||||
<user-menu :theme="theme"/>
|
||||
<user-menu :theme="theme" @searchGlobalHeader="searchGlobalHeader" />
|
||||
</div>
|
||||
<!-- 顶部导航栏模式 -->
|
||||
<div v-else :class="['top-nav-header-index', theme]">
|
||||
@@ -156,6 +156,9 @@
|
||||
this.topMenuStyle.headerIndexLeft = { 'width': `calc(100% - ${rightWidth})` }
|
||||
}
|
||||
}
|
||||
},
|
||||
searchGlobalHeader(key, id, title, component){
|
||||
this.$emit("searchGlobalLayout", key, id, title, component)
|
||||
}
|
||||
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
:collapsed="collapsed"
|
||||
:device="device"
|
||||
@toggle="toggle"
|
||||
@searchGlobalLayout="searchGlobalLayout"
|
||||
/>
|
||||
|
||||
<!-- layout content -->
|
||||
@@ -165,6 +166,9 @@
|
||||
this.findMenuBykey(i.children,key)
|
||||
}
|
||||
}
|
||||
},
|
||||
searchGlobalLayout(key, id, title, component){
|
||||
this.$emit("dynamicRouterShow", key, id, title, component)
|
||||
}
|
||||
//update-end-author:taoyan date:20190430 for:动态路由title显示配置的菜单title而不是其对应路由的title
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user