新增字数统计功能
This commit is contained in:
tangly1024
2021-12-17 16:42:52 +08:00
parent 395f402896
commit d4d969a10d
3 changed files with 127 additions and 89 deletions

View File

@@ -56,7 +56,6 @@ const Index = ({ allPosts, tags, categories }) => {
() => {
if (window) {
const anchor = window.location.hash
console.log('滚动', anchor)
if (anchor) {
setTimeout(() => {
const anchorElement = document.getElementById(anchor.substring(1))