diff --git a/src/components/Artalk.astro b/src/components/Artalk.astro index b70bf05..f7da561 100644 --- a/src/components/Artalk.astro +++ b/src/components/Artalk.astro @@ -1,23 +1,5 @@ --- -import Artalk from 'artalk'; -import { useEffect } from 'react'; - -const { siteKey, siteName } = Astro.props; - -useEffect(() => { - const artalk = new Artalk({ - el: '#Comments', - site: ittst, - server: 'https://artalk.loliko.cn', - }); - - // 添加 loaded 类名以触发转场效果 - document.getElementById('artalk-container').classList.add('loaded'); - return () => { - artalk.destroy(); - }; -}, [siteKey, siteName]); --- -
\ No newline at end of file + + \ No newline at end of file