Skip to content

Commit

Permalink
fix(router): re-introduction the deleted comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ToastKiste21 committed Sep 18, 2024
1 parent 2acf7bd commit 61b1dac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/plugins/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ const backTransition = 'slide-x';
router.back = () => {
const route = router.currentRoute;

/**
* Play the default page transition but reversed, to play a different effect when going
* to the previous page.
*/

route.value.meta.layout.transition = {
enter: 'slide-x-reverse',
leave: route.value.meta.layout.transition.leave ?? backTransition
Expand Down

0 comments on commit 61b1dac

Please sign in to comment.