diff --git a/components/FriendsCommentInput.vue b/components/FriendsCommentInput.vue index 178073d7..4ebaeb4d 100644 --- a/components/FriendsCommentInput.vue +++ b/components/FriendsCommentInput.vue @@ -69,7 +69,7 @@ const saveComment = async () => { toast.warning('先填写评论') return } - if (content.value.length > parseInt(config.public.commentMaxLength)) { + if (content.value.length > parseInt(config.public.momentsCommentMaxLength)) { toast.warning('评论超长') return } @@ -86,11 +86,11 @@ const saveComment = async () => { return } - if (config.public.recaptchaV3SiteKey) { + if (config.public.googleRecaptchaSiteKey) { //@ts-ignore grecaptcha.ready(function () { //@ts-ignore - grecaptcha.execute(config.public.recaptchaV3SiteKey, { action: 'submit' }).then(async function (token) { + grecaptcha.execute(config.public.googleRecaptchaSiteKey, { action: 'submit' }).then(async function (token) { submitComment(token) }); }); diff --git a/components/FriendsMemo.vue b/components/FriendsMemo.vue index ac5f4eeb..412489f7 100644 --- a/components/FriendsMemo.vue +++ b/components/FriendsMemo.vue @@ -93,8 +93,8 @@
{{ likeList.findIndex((id) => id === props.memo.id) >= 0 ? '取消' : '赞' }}
-
+
评论
@@ -106,13 +106,13 @@
{{ props.memo.favCount }}位访客赞过
- -