-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 发送显示发送中 2. 接入文档页 3. 页脚调整
- Loading branch information
Showing
9 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extend: '@vuepress/theme-default' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<ParentLayout> | ||
<template #page-bottom> | ||
<div class="page-edit"> | ||
<div id="twikoo"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js" ref="twikooJs"></script> | ||
</div> | ||
</template> | ||
</ParentLayout> | ||
</template> | ||
|
||
<script> | ||
import ParentLayout from '@parent-theme/layouts/Layout.vue' | ||
const envId = 'imaegoo-16fe3d' | ||
export default { | ||
name: 'Layout', | ||
components: { | ||
ParentLayout | ||
}, | ||
mounted () { | ||
const twikooJs = this.$refs.twikooJs | ||
if (twikooJs) { | ||
twikooJs.onload = this.initTwikoo | ||
this.$router.afterEach(this.onRoute) | ||
} | ||
}, | ||
methods: { | ||
initTwikoo () { | ||
twikoo.init({ envId }) | ||
}, | ||
onRoute (to, from) { | ||
if (to.path !== from.path) this.initTwikoo() | ||
} | ||
} | ||
} | ||
</script> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 常见问题 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "twikoo", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "A simple comment system based on Tencent CloudBase (tcb).", | ||
"author": "imaegoo <[email protected]> (https://github.com/imaegoo)", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters