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