From d3ab8fb2c10d90a0282ed7a7fc97be97422a0870 Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Mon, 6 Nov 2023 02:00:56 +0800 Subject: [PATCH] fix: add css var safe padding bottom --- components/TheBottomMenu.vue | 13 +++++-------- layouts/default.vue | 2 +- package.json | 2 +- styles/css-vars.scss | 6 ++++++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/components/TheBottomMenu.vue b/components/TheBottomMenu.vue index 215e0ad..b119933 100644 --- a/components/TheBottomMenu.vue +++ b/components/TheBottomMenu.vue @@ -38,24 +38,21 @@ const route = useRoute() const router = useRouter() function onClick(item: BottomMenuItem) { - router.push(item.to || '/') + // router.push(item.to || '/') + router.replace(item.to || '/') } - - diff --git a/layouts/default.vue b/layouts/default.vue index 7c246d4..d6cb240 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,5 +1,5 @@