From 8afbb9ef5975228dba0b488abf52060626de22db Mon Sep 17 00:00:00 2001 From: zlong <953829746@qq.com> Date: Tue, 19 Nov 2024 22:39:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B0=86=E5=B7=A5=E5=85=B7=E5=87=BD?= =?UTF-8?q?=E6=95=B0export{}=E6=94=B9=E6=88=90export=20default=20{}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/pet-manual/index.vue | 4 ++-- src/utils/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/pet-manual/index.vue b/src/pages/pet-manual/index.vue index 8e6953c..2815678 100644 --- a/src/pages/pet-manual/index.vue +++ b/src/pages/pet-manual/index.vue @@ -3,7 +3,7 @@ import bg from '@/static/image/feed-plan/bg.png' import circle from '@/static/image/feed-plan/circle.png' import message from '@/static/image/feed-plan/message.png' -import {getSafeHeight} from '@/utils' +import ToolApi from '@/utils' interface ListItem { img: string @@ -69,7 +69,7 @@ const listModel = ref([ time: '2025年1月1日', }, ]) -const safeHeight = getSafeHeight() +const safeHeight = ToolApi.getSafeHeight() const searchValue = ref('') const info = ref([ diff --git a/src/utils/index.ts b/src/utils/index.ts index ffc6194..08b03e1 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -5,6 +5,6 @@ function getSafeHeight(): number { return safeAreaInsetBottom + menuButtonInfoHeight } -export { +export default { getSafeHeight } -- 2.34.1