卡片悬浮效果优化,页面监听置顶

This commit is contained in:
WindowBird 2025-11-04 10:59:56 +08:00
parent 8d214bdb71
commit 5743749c3f

View File

@ -58,6 +58,15 @@ const fetchArticles = async () => {
}
}
//
watch(page, () => {
fetchArticles()
//
window.scrollTo({ top: 0, behavior: 'smooth' })
})
//
watch(() => route.query.code, (newCode, oldCode) => {
// code
@ -117,7 +126,7 @@ onMounted(() => {
root:'group',
container: 'relative grid lg:grid-cols-[1fr_4fr] gap-8 p-6',
}"
class="hover:shadow-2xl hover:scale-105 hover:translate-x-8 [--spotlight-size:188px]"
class="hover:shadow-2xl hover:scale-102 [--spotlight-size:188px]"
orientation="horizontal"
reverse
spotlight