diff --git a/src/views/index/index.vue b/src/views/index/index.vue index 1681617..5c95b7a 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -4,7 +4,7 @@ - +
{{ $t(tabBar.text) }}
diff --git a/src/views/index/message/index.vue b/src/views/index/message/index.vue index d1313f0..c948deb 100644 --- a/src/views/index/message/index.vue +++ b/src/views/index/message/index.vue @@ -1,6 +1,6 @@ @@ -11,8 +11,9 @@ import {getSetting} from "@/api"; import {onMounted} from "vue"; const iframeSrc = ref('') +// const iframeSrc = ref('https://www.baidu.com') // const iframeSrc = ref('https://chatlink.mstatik.com/widget/standalone.html?eid=329d34187acc7ebda66a12a0671e3d70') - +const navBarHeight = ref(50) const _getSetting = () => { getSetting().then(res => { @@ -22,6 +23,10 @@ const _getSetting = () => { } onMounted(() => { + const elementsByClassName = document.getElementById('van-tabbar'); + if (elementsByClassName) { + navBarHeight.value = elementsByClassName.offsetHeight + 1 + } _getSetting() })