减少日志

This commit is contained in:
tangly1024
2023-07-28 20:45:46 +08:00
parent beeed7f632
commit e1976aaf3e
8 changed files with 6 additions and 14 deletions

View File

@@ -5,8 +5,8 @@ import { useEffect } from 'react'
const ValineComponent = ({ path }) => {
const loadValine = async () => {
try {
const url = await loadExternalResource(BLOG.COMMENT_VALINE_CDN, 'js')
console.log('valine 加载成功', url)
await loadExternalResource(BLOG.COMMENT_VALINE_CDN, 'js')
// console.log('valine 加载成功', url)
const Valine = window.Valine
// eslint-disable-next-line no-unused-vars
const valine = new Valine({
@@ -21,7 +21,6 @@ const ValineComponent = ({ path }) => {
serverURLs: BLOG.COMMENT_VALINE_SERVER_URLS,
visitor: true
})
console.log('初始化valine成功')
} catch (error) {
console.error('twikoo 加载失败', error)
}