Преглед изворни кода

Merge branch 'feature/7-feedplan' of 1-bright/frontend-uniapp into main

依力 пре 1 година
родитељ
комит
47d499d541
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      src/pages/pet-manual/index.vue
  2. 1 1
      src/utils/index.ts

+ 2 - 2
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<ListItem[]>([
     time: '2025年1月1日',
   },
 ])
-const safeHeight = getSafeHeight()
+const safeHeight = ToolApi.getSafeHeight()
 const searchValue = ref<string>('')
 
 const info = ref<Item[]>([

+ 1 - 1
src/utils/index.ts

@@ -5,6 +5,6 @@ function getSafeHeight(): number {
   return safeAreaInsetBottom + menuButtonInfoHeight
 }
 
-export {
+export default {
   getSafeHeight
 }