Commit 8dd5468734f2379d573cb0162412a9be11eb4b85

Authored by 梁灏
1 parent 6d89ed96

#709

@vace
Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
examples/routers/menu.vue
1 <template> 1 <template>
2 <div> 2 <div>
3 - <Menu mode="horizontal" :theme="theme1" active-name="1" @on-select="s"> 3 + <Menu mode="horizontal" :theme="theme1" @on-select="s">
4 <Row type="flex" justify="center" align="middle"> 4 <Row type="flex" justify="center" align="middle">
5 <i-col span="12"> 5 <i-col span="12">
6 <Menu-item name="1"> 6 <Menu-item name="1">
src/components/menu/menu.vue
@@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
69 }, 69 },
70 methods: { 70 methods: {
71 updateActiveName () { 71 updateActiveName () {
72 - if (!this.currentActiveName) { 72 + if (this.currentActiveName === undefined) {
73 this.currentActiveName = -1; 73 this.currentActiveName = -1;
74 } 74 }
75 this.broadcast('Submenu', 'on-update-active-name', false); 75 this.broadcast('Submenu', 'on-update-active-name', false);