From aae5873e04a46ac864c1a8324cbb218808c521d1 Mon Sep 17 00:00:00 2001 From: ToastKiste21 Date: Wed, 18 Sep 2024 12:19:51 +0200 Subject: [PATCH] fix(router): re-introduction the deleted comment --- frontend/src/plugins/router/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/plugins/router/index.ts b/frontend/src/plugins/router/index.ts index 8a8b333162f..0693ddb4a56 100644 --- a/frontend/src/plugins/router/index.ts +++ b/frontend/src/plugins/router/index.ts @@ -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