diff --git a/src/Index.vue b/src/Index.vue index 8aa0794..017ebf3 100644 --- a/src/Index.vue +++ b/src/Index.vue @@ -97,6 +97,10 @@ onMounted(() => { // 计算footer的高度 const footerHeight = footer.value?.clientHeight || 0; console.log('footerHeight', footerHeight); + + document.addEventListener('resize', () => { + + }) }) diff --git a/src/components/homeSide.vue b/src/components/homeSide.vue index 566133f..580a260 100644 --- a/src/components/homeSide.vue +++ b/src/components/homeSide.vue @@ -101,13 +101,15 @@ async function getJq() { console.log('>>> --> getJq --> res:', res.data) jq.value = res.data const j = res.data.solarTerms.slice(0, 2) - jqImg.value = 'https://www.hxyouzi.com/img/jq/' + j + '.png' + // 获取时间戳 + const timestamp = new Date().getTime() + jqImg.value = 'https://www.hxyouzi.com/img/jq/' + j + '.png?' + timestamp } async function getBdhot() { const res = await $http.mix.getBdhot() console.log('>>> --> getBdhot --> res:', res.data) - // 取前5条 + // 取前5条aa bdNews.value = res.data.slice(0, 5) } diff --git a/src/components/menuH.vue b/src/components/menuH.vue index bbda24a..d7859c7 100644 --- a/src/components/menuH.vue +++ b/src/components/menuH.vue @@ -1,7 +1,7 @@