1
0
mirror of https://github.com/201206030/novel-plus.git synced 2025-07-13 12:46:38 +00:00

模版更新

This commit is contained in:
xiongxiaoyang
2025-03-23 11:50:44 +08:00
parent f043ddff42
commit a06132a4c2
2 changed files with 19 additions and 4 deletions
templates/green/html/author

@ -347,8 +347,12 @@
success: function(res){
layer.close(loading);
// 将生成的内容追加到文本末尾
const newText = "\n\n" + res.data; // 添加换行符分隔
typeWriter(textarea, newText); // 使用打字机效果
if(res.code == '200'){
const newText = "\n\nAI生成内容" + res.data; // 添加换行符分隔
typeWriter(textarea, newText); // 使用打字机效果
}else{
layer.msg('AI内容生成失败请稍后重试');
}
},
error: function(){
layer.msg('请求失败,请稍后重试');