no message

Former-commit-id: d9b03b1aba4d211c5b7e4664aeb0c3e0e582291d
Former-commit-id: 375b499e66faf4e31a1377ab3eda69a914432b0c
Former-commit-id: de4ed0beb15eeb7c61e69b14557dc85f81ed53d5
This commit is contained in:
liyang
2018-06-09 22:01:49 +08:00
parent a9144e2b70
commit 96165a3a4d
3 changed files with 11 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
</template>
<script>
import { side } from '@/menu/index.js'
export default {
props: {
collapse: {
@@ -36,7 +37,8 @@ export default {
watch: {
'$route.matched': {
handler (val) {
console.log(val)
const path = val[0].path
this.menus = side.filter(menu => menu.path === path)
},
immediate: true
}