Improve usability
This commit is contained in:
@ -121,7 +121,11 @@ export default defineComponent({
|
||||
return this.window();
|
||||
}
|
||||
|
||||
this.$router.push(this.to);
|
||||
if (this.$router.currentRoute.value.path === this.to) {
|
||||
window.scroll({ top: 0, behavior: 'smooth' });
|
||||
} else {
|
||||
this.$router.push(this.to);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user