From fdb95c7041cba9a11d2852b68fefbaf557f65f3c Mon Sep 17 00:00:00 2001 From: YWQ HK IX <568170040@qq.com> Date: Mon, 28 Nov 2022 13:55:02 +0800 Subject: [PATCH] upload --- src/components/views/turing.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/views/turing.vue b/src/components/views/turing.vue index 2e125e2..d2e107c 100644 --- a/src/components/views/turing.vue +++ b/src/components/views/turing.vue @@ -284,11 +284,13 @@ export default { }, goView(id) { document.querySelector("#" + id).scrollIntoView({ - behavior: "smooth", //定义动画过渡效果"auto"或 "smooth" 之一。默认为 "auto"。 - block: "start", //定义垂直方向的对齐, "start", "center", "end", 或 "nearest"之一。默认为 "start"。 - inline: "nearest", //"start", "center", "end", 或 "nearest"之一。默认为 "nearest"。 + //定义动画过渡效果"auto"或 "smooth" 之一。默认为 "auto"。 + block: "start", + //定义垂直方向的对齐, "start", "center", "end", 或 "nearest"之一。默认为 "start"。 + inline: "nearest", + //"start", "center", "end", 或 "nearest"之一。默认为 "nearest"。 + behavior: "smooth", }); - // console.log(document.querySelector(id),); }, goPages(path) { this.$router.push(`/${path}`);