This commit is contained in:
tangly1024
2023-11-18 13:23:42 +08:00
parent 7f8bf757b8
commit 27589ab7d1

View File

@@ -16,7 +16,7 @@ const Twikoo = ({ isDarkMode }) => {
const lang = siteConfig('LANG')
useEffect(() => {
const twikoo = window?.twikoo
if (typeof twikoo !== 'undefined' && twikoo) {
if (typeof twikoo !== 'undefined' && twikoo && typeof twikoo.init === 'function') {
twikoo.init({
envId: envId, // 腾讯云环境填 envIdVercel 环境填地址https://xxx.vercel.app
el: el, // 容器元素