From 347bb325ca1fe9fe0bdf00cc3815970a9aab8058 Mon Sep 17 00:00:00 2001 From: John <377342263@qq.com> Date: Wed, 29 May 2024 04:39:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/index.vue | 2 +- src/views/index/message/index.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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() })