From 1f117ab723666f8452fb4acbdfd90ef9b6e00d7e Mon Sep 17 00:00:00 2001
From: neverland <chenjiahan@youzan.com>
Date: Wed, 20 May 2020 17:25:22 +0800
Subject: [PATCH] chore(cli): scroll to anchor immediately (#6323)

---
 packages/vant-cli/site/desktop/utils.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/packages/vant-cli/site/desktop/utils.js b/packages/vant-cli/site/desktop/utils.js
index 154d088a5..085afa72f 100644
--- a/packages/vant-cli/site/desktop/utils.js
+++ b/packages/vant-cli/site/desktop/utils.js
@@ -4,9 +4,7 @@ export function scrollToAnchor(selector) {
   const timer = setInterval(() => {
     const el = document.querySelector(selector);
     if (el) {
-      el.scrollIntoView({
-        behavior: 'smooth',
-      });
+      el.scrollIntoView();
       clearInterval(timer);
     } else {
       count++;