Skip to content

Commit

Permalink
try fix disqus
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchiuli committed Jan 16, 2025
1 parent 207e031 commit aff6db2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/DiscussItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ onMounted(() => {
const giscus = createGiscusScript()
const disqus = createDisqusScript()
document.getElementById('disqus-thread')!.appendChild(disqus)
document.getElementById('giscus-thread')!.appendChild(giscus)
document.getElementById('disqus_thread')!.appendChild(disqus)
document.getElementById('giscus_thread')!.appendChild(giscus)
})
</script>

<template>
<div id="comment-div">
<el-tabs :stretch="true" v-model="activeName">
<el-tab-pane label="Disqus" name="first">
<div id="disqus-thread" style="width: inherit"></div>
<div id="disqus_thread" style="width: inherit"></div>
</el-tab-pane>
<el-tab-pane label="Giscus" name="second">
<div id="giscus-thread" style="width: inherit"></div>
<div id="giscus_thread" style="width: inherit"></div>
</el-tab-pane>
</el-tabs>
</div>
Expand Down

0 comments on commit aff6db2

Please sign in to comment.