no message
Former-commit-id: d9b03b1aba4d211c5b7e4664aeb0c3e0e582291d Former-commit-id: 375b499e66faf4e31a1377ab3eda69a914432b0c Former-commit-id: de4ed0beb15eeb7c61e69b14557dc85f81ed53d5
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user