Browse Source

fix: menu click bug

pull/22/head
tjz 7 years ago
parent
commit
3694ad80c7
  1. 3
      components/menu/index.jsx
  2. 2
      site/routes.js

3
components/menu/index.jsx

@ -231,6 +231,9 @@ export default {
menuProps.on.click = this.handleClick menuProps.on.click = this.handleClick
menuProps.props.openTransitionName = menuOpenAnimation menuProps.props.openTransitionName = menuOpenAnimation
} else { } else {
menuProps.on.click = (e) => {
this.$emit('click', e)
}
menuProps.props.openAnimation = menuOpenAnimation menuProps.props.openAnimation = menuOpenAnimation
} }

2
site/routes.js

@ -4,7 +4,7 @@ import Iframe from './components/iframe.vue'
const AsyncTestComp = () => { const AsyncTestComp = () => {
const d = window.location.hash.replace('#', '') const d = window.location.hash.replace('#', '')
return { return {
component: import(`../components/layout/demo/${d}`), component: import(`../components/menu/demo/${d}`),
} }
} }

Loading…
Cancel
Save