no message

Former-commit-id: 71b80b9ef4c9945e3e648a3ee8932d05db30d7f3
Former-commit-id: bc8f4d4a05862cd678edf9caf3fc1a7104b333da
Former-commit-id: be0ace8e27b2c77e76dab235f7641f49bbf84ed5
This commit is contained in:
liyang
2018-06-09 21:28:23 +08:00
parent 277538de13
commit 90530d8bd4
2 changed files with 7 additions and 5 deletions

View File

@@ -34,9 +34,11 @@ export default {
} }
}, },
watch: { watch: {
$route (val) { '$route.matched': {
handler (val) {
console.log(val) console.log(val)
} }
} }
}
} }
</script> </script>

View File

@@ -104,9 +104,9 @@ const routes = [
} }
] ]
routes[3].children.forEach(e => { // routes[3].children.forEach(e => {
console.log(`{ path: \`\${pre}${e.path}\`, title: 'title' }`) // console.log(`{ path: \`\${pre}${e.path}\`, title: 'title' }`)
}) // })
let router = new VueRouter({ routes }) let router = new VueRouter({ routes })