From 8cde195b30c2111338ac2bcec45bcaf145867ccf Mon Sep 17 00:00:00 2001 From: inkss Date: Wed, 29 Jun 2022 13:45:34 +0800 Subject: [PATCH] refactor(artalk)!: imgUploader -> imageUploader --- _config.yml | 2 +- layout/_plugins/comments/artalk/script.ejs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index aedcdfc72..7368e1e64 100755 --- a/_config.yml +++ b/_config.yml @@ -324,7 +324,7 @@ comments: placeholder: # 评论占位 # artalk 有三类图片:1.上传至服务端 2.上传至服务端后利用upgit上传至图床 3.前端上传至图床(本配置为此类) # 配置此项时将覆盖服务端上传能力 - imgUploader: + imageUploader: # 以兰空图床为例,下列填写内容为: # url: 'https://xxxxxx/api/v1/upload' # token: 'Bearer xxxxxxxxxxxxxx' diff --git a/layout/_plugins/comments/artalk/script.ejs b/layout/_plugins/comments/artalk/script.ejs index 3406525a5..aa2dc62be 100644 --- a/layout/_plugins/comments/artalk/script.ejs +++ b/layout/_plugins/comments/artalk/script.ejs @@ -27,7 +27,7 @@ darkMode: volantis.dark.mode === "dark", pvEl: '#artalk_visitors', - <% if(!!theme.comments.artalk.imgUploader?.api){ %> + <% if(!!theme.comments.artalk.imageUploader?.api){ %> imgUploader: function(file) { let headers = new Headers(); headers.set('Accept', 'application/json'); @@ -46,7 +46,7 @@ <% } %> })); - Artalk.Use(ctx => { + Artalk.use(ctx => { ctx.on('list-loaded', () => { if (typeof VolantisFancyBox === "undefined"){ const checkFancyBox = setInterval(() => {