修复ai bug

This commit is contained in:
1152958806@qq.com 2023-08-28 02:07:07 +08:00
parent b7c0044f64
commit a605a115c2
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,10 @@
switch: [[${ theme.config.tool.snackbar.switch }]]
},
postAi:{
ai : '[(${post.status.excerpt})]',
ai : [[${htmlType != 'post' || !theme.config.post.aiDescription.aiDescriptionEnable ? '' :
theme.config.post.aiDescription.mode != 'local' && !theme.config.post.aiDescription.switchBtn ? '' :
post.spec.excerpt.autoGenerate ? '本地模式需要自己填写文章摘要' :
#strings.isEmpty(post.status.excerpt) ? '请填写文章摘要' : post.status.excerpt }]],
randomNum : [[${theme.config.post.aiDescription.randomNum}]],
basicWordCount : [[${theme.config.post.aiDescription.basicWordCount}]],
btnLink : "[(${theme.config.post.aiDescription.btnLink})]",