vuepress-plugin-twikoo 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Comment.vue +3 -3
- package/package.json +1 -1
package/Comment.vue
CHANGED
|
@@ -56,10 +56,10 @@ export default {
|
|
|
56
56
|
|
|
57
57
|
// 基础移动逻辑(抽离成独立函数)
|
|
58
58
|
moveContainer() {
|
|
59
|
-
if (!TWIKOO_CONTAINER) return; // 无目标容器则直接返回
|
|
59
|
+
if (!TWIKOO_CONTAINER) return true; // 无目标容器则直接返回true
|
|
60
60
|
|
|
61
61
|
const targetContainer = document.querySelector(TWIKOO_CONTAINER);
|
|
62
|
-
if (!targetContainer) return; // 目标容器不存在则返回
|
|
62
|
+
if (!targetContainer) return true; // 目标容器不存在则返回true
|
|
63
63
|
|
|
64
64
|
const commentContainer = document.querySelector(TWIKOO_OPTIONS.el || '#twikoo');
|
|
65
65
|
if (commentContainer) {
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
79
79
|
|
|
80
80
|
// 移动成功 或 达到最大重试次数,终止重试
|
|
81
81
|
if (success || retries >= maxRetries) {
|
|
82
|
-
if (!success) console.warn('Twikoo
|
|
82
|
+
if (!success) console.warn('Twikoo初始化失败:未找到 Twikoo 评论容器元素');
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
|