mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 21:29:31 +08:00
!25 支持文章自定义验证码获取方式、优化友链提交页面
* fix(提交链接): 修复博客 logo 显示问题 * feat(plugin): 重构友链提交插件配置 * feat(api): 为 restrict-read 请求添加微信会话 ID 并支持自定义验证码类型
This commit is contained in:
@@ -483,7 +483,11 @@ export default {
|
||||
const restrictRead = checkPostRestrictRead(this.result);
|
||||
|
||||
if (restrictRead && toolsPluginEnabled) {
|
||||
const verifyCodeType = getAppConfigs().pluginConfig.toolsPlugin?.verifyCodeType;
|
||||
let verifyCodeType = getAppConfigs().pluginConfig.toolsPlugin?.verifyCodeType;
|
||||
const postVerifyCodeType = this.result?.metadata?.annotations?.verifyCodeType;
|
||||
if (postVerifyCodeType) {
|
||||
verifyCodeType = postVerifyCodeType;
|
||||
}
|
||||
if (verifyCodeType === 'scan') {
|
||||
const scanCodeUrl = getAppConfigs().pluginConfig.toolsPlugin?.scanCodeUrl;
|
||||
this.verificationCodeModal.type = 'scan';
|
||||
|
||||
Reference in New Issue
Block a user