fix(profile): skip redundant navigation

This commit is contained in:
SabreCat 2023-08-15 15:48:30 -05:00
parent db56134832
commit 50cc7ee09a

View file

@ -270,6 +270,9 @@ export default {
methods: {
percent,
showMemberModal (member) {
if (this.$route.name === 'userProfile' && this.$route.params?.userId === member._id) {
return;
}
this.$router.push({ name: 'userProfile', params: { userId: member._id } });
},
},