Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

国际版leancloud valine似乎无法评论 #88

Closed
tanglu1323123 opened this issue Mar 16, 2023 · 9 comments
Closed

国际版leancloud valine似乎无法评论 #88

tanglu1323123 opened this issue Mar 16, 2023 · 9 comments

Comments

@tanglu1323123
Copy link

tanglu1323123 commented Mar 16, 2023

作者你好,我刚刚在我 博客 配置了valine但是遇到了这种报错
image

我在valine_issues找到了 类似的情况

但是我看到作者你的博客似乎可以正常评论,所以想请问下我是哪里出错了呀?

我的valine_admin配置如下:

image

image

image

@zchengsite
Copy link
Owner

参照这个解决方案试下

@tangluya
Copy link

tangluya commented Mar 20, 2023

作者你好,我不懂API接口,我照葫芦画瓢 在我hexo配置修改了这两个地方,但更新之后网页都打不开了(我的配置文件是一个月之前的版本)

image

image

image

@tangluya
Copy link

我博客当前状态为 layout/_partial/comments.ejs 文件不变,在 _config.yml 文件中添加了"serverURLs: https://你的AppID前8位.api.lncldglobal.com "
可以打开博客 但仍然无法评论

@zchengsite
Copy link
Owner

<%= theme.comments.valine.serverURLs %>
你少了个comments属性
改完后,重新hexo clean && hexo g && hexo s

@tangluya
Copy link

抱歉,我不是很懂代码。请问是这样修改吗?

function loadValineSuc() {
  new Valine({
    el: '#vcomments',
    appId: '<%- theme.comments.valine.appId %>',
    appKey: '<%- theme.comments.valine.appKey %>',
    placeholder: '<%- theme.comments.valine.placeholder %>',
    avatar: '<%- theme.comments.valine.avatar %>',
    lang: '<%= config.language %>',

    serverURLs: '<%= theme.valine.serverURLs %>',
    comments: '<%= theme.comments.valine.serverURLs %>'

  })
}

@zchengsite
Copy link
Owner

function loadValineSuc() {
  new Valine({
    el: '#vcomments',
    appId: '<%- theme.comments.valine.appId %>',
    appKey: '<%- theme.comments.valine.appKey %>',
    placeholder: '<%- theme.comments.valine.placeholder %>',
    avatar: '<%- theme.comments.valine.avatar %>',
    lang: '<%= config.language %>',
    serverURLs: '<%= theme.comments.valine.serverURLs %>'
  })
}

@tangluya
Copy link

感谢大哥,成功了

@tanglu1323123 tanglu1323123 changed the title valine似乎无法评论 国际版leancloud valine似乎无法评论 Mar 20, 2023
@tanglu1323123
Copy link
Author

valine使用leancloud国际版 国内无法访问
用了一个月我才发现这个问题,已改用waline 😅

@zchengsite
Copy link
Owner

😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants