From 7d7fd9ed646d2b68cec0547ad8e65b0404bb95bb Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Sun, 20 Feb 2022 09:40:08 +0800 Subject: [PATCH] feat: Add useScrollTo hook --- src/components/TagsView/src/TagsView.vue | 124 +++++++++++++++++++++-- src/hooks/event/useScrollTo.ts | 62 ++++++++++++ src/store/modules/permission.ts | 1 - src/store/modules/tagsView.ts | 8 ++ 4 files changed, 187 insertions(+), 8 deletions(-) create mode 100644 src/hooks/event/useScrollTo.ts diff --git a/src/components/TagsView/src/TagsView.vue b/src/components/TagsView/src/TagsView.vue index 7d52ab4..6c1af07 100644 --- a/src/components/TagsView/src/TagsView.vue +++ b/src/components/TagsView/src/TagsView.vue @@ -1,7 +1,7 @@ @@ -152,12 +260,14 @@ watch(