This commit is contained in:
Pan 2019-02-13 10:55:47 +08:00
parent 4b9a9fb919
commit f2553b32ae
1 changed files with 3 additions and 3 deletions

View File

@ -65,11 +65,11 @@ export default {
click() {
this.show = !this.show
if (this.show) {
this.$refs.headerSearchSelect.focus()
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.focus()
}
},
close() {
this.$refs.headerSearchSelect.blur()
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.blur()
this.options = []
this.show = false
},
@ -127,7 +127,7 @@ export default {
// recursive child routers
if (router.children) {
const tempRouters = this.generateRouters(router.children, router.path, data.title)
const tempRouters = this.generateRouters(router.children, data.path, data.title)
if (tempRouters.length >= 1) {
res = [...res, ...tempRouters]
}