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 }