fix:将工具函数export{}改成export default {}

This commit was merged in pull request #5.
This commit is contained in:
zlong committed 2024-11-19 22:39:14 +08:00
1 parent 631df21b33
commit 8afbb9ef59
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
import bg from '@/static/image/feed-plan/bg.png' import bg from '@/static/image/feed-plan/bg.png'
import circle from '@/static/image/feed-plan/circle.png' import circle from '@/static/image/feed-plan/circle.png'
import message from '@/static/image/feed-plan/message.png' import message from '@/static/image/feed-plan/message.png'
import {getSafeHeight} from '@/utils' import ToolApi from '@/utils'
interface ListItem { interface ListItem {
img: string img: string
@@ -69,7 +69,7 @@ const listModel = ref<ListItem[]>([
time: '2025年1月1日', time: '2025年1月1日',
}, },
]) ])
const safeHeight = getSafeHeight() const safeHeight = ToolApi.getSafeHeight()
const searchValue = ref<string>('') const searchValue = ref<string>('')
const info = ref<Item[]>([ const info = ref<Item[]>([
+1 -1
View File
@@ -5,6 +5,6 @@ function getSafeHeight(): number {
return safeAreaInsetBottom + menuButtonInfoHeight return safeAreaInsetBottom + menuButtonInfoHeight
} }
export { export default {
getSafeHeight getSafeHeight
} }