Работа с keyHook, мелкий рефакторинг

This commit is contained in:
Book Pauk
2019-01-11 02:13:46 +07:00
parent 64bff259ff
commit a30fd57afb
3 changed files with 14 additions and 9 deletions

View File

@@ -142,7 +142,8 @@ class App extends Vue {
get rootRoute() {
const m = this.$route.path.match(/^(\/[^/]*).*$/i);
return (m ? m[1] : this.$route.path);
this.$root.rootRoute = (m ? m[1] : this.$route.path);
return this.$root.rootRoute;
}
itemTitleClass(path) {