Skip to content

Commit 310f92e

Browse files
remove unnecessary routeTo
1 parent 9735f7a commit 310f92e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

generator/templates/Default/src/components/ProfileMenu.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</v-btn>
1414
</template>
1515
<v-list>
16-
<v-list-item @click="routeTo('profile')">
16+
<v-list-item :to="{name:'profile'}">
1717
<v-list-item-title>Profiel</v-list-item-title>
1818
</v-list-item>
1919
<v-list-item @click="logout">
@@ -37,9 +37,6 @@
3737
3838
},
3939
methods: {
40-
routeTo(name) {
41-
this.$router.push({name: name});
42-
},
4340
logout() {
4441
this.$store.dispatch('Authorization/unauthorized');
4542
}

0 commit comments

Comments
 (0)