perf:format code

This commit is contained in:
Pan
2017-11-27 10:46:08 +08:00
parent f876b9b678
commit c06baffb17
8 changed files with 24 additions and 25 deletions

View File

@@ -19,6 +19,11 @@ export default {
levelList: null
}
},
watch: {
$route() {
this.getBreadcrumb()
}
},
methods: {
getBreadcrumb() {
let matched = this.$route.matched.filter(item => item.name)
@@ -31,11 +36,6 @@ export default {
generateTitle(title) {
return this.$t('route.' + title)
}
},
watch: {
$route() {
this.getBreadcrumb()
}
}
}
</script>