From f506ebcf3052980c65d58ac58ff2f4a854e3f507 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Mon, 20 Dec 2021 14:14:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=20backtopRef=20=20Error?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module/backTop/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/backTop/index.vue b/src/module/backTop/index.vue index c23fc1e8..b99bb101 100644 --- a/src/module/backTop/index.vue +++ b/src/module/backTop/index.vue @@ -98,7 +98,7 @@ const getScrollTarget = () => { if (!targetElement.parentElement) throw new Error(`target parent element is not existed: ${props.target}`); targetElement.parentElement.style.position = 'relative'; console.log(backtopRef.value); - if (!backtopRef.value) throw new Error(`target ref is null: ${props.target}`); + if (!backtopRef.value) throw new Error(`backtop component ref is null: ${props.target}`); backtopRef.value.style.position = props.position; } return targetElement;