评论插件微调

This commit is contained in:
tlyong1992
2022-05-25 13:55:27 +08:00
parent 955060a0cc
commit 8132a96b92
2 changed files with 9 additions and 11 deletions

View File

@@ -3,15 +3,13 @@ import React from 'react'
import Valine from 'valine'
const ValineComponent = (props) => {
const { path } = props
React.useEffect(() => {
const valine = Valine({
el: '#vcomments',
appId: BLOG.COMMENT_VALINE_APP_ID,
appKey: BLOG.COMMENT_VALINE_APP_KEY,
avatar: '',
path: path,
recordIP: false,
recordIP: true,
placeholder: BLOG.COMMENT_VALINE_PLACEHOLDER,
serverURLs: BLOG.COMMENT_VALINE_SERVER_URLS,
visitor: true