fix bug
This commit is contained in:
parent
4b9a9fb919
commit
f2553b32ae
|
@ -65,11 +65,11 @@ export default {
|
||||||
click() {
|
click() {
|
||||||
this.show = !this.show
|
this.show = !this.show
|
||||||
if (this.show) {
|
if (this.show) {
|
||||||
this.$refs.headerSearchSelect.focus()
|
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.focus()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.$refs.headerSearchSelect.blur()
|
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.blur()
|
||||||
this.options = []
|
this.options = []
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
|
@ -127,7 +127,7 @@ export default {
|
||||||
|
|
||||||
// recursive child routers
|
// recursive child routers
|
||||||
if (router.children) {
|
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) {
|
if (tempRouters.length >= 1) {
|
||||||
res = [...res, ...tempRouters]
|
res = [...res, ...tempRouters]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue