|
|
@ -168,7 +168,7 @@
|
|
|
|
<view class="textarea-wrapper">
|
|
|
|
<view class="textarea-wrapper">
|
|
|
|
<textarea
|
|
|
|
<textarea
|
|
|
|
class="textarea-box"
|
|
|
|
class="textarea-box"
|
|
|
|
v-model="question"
|
|
|
|
v-model="content"
|
|
|
|
placeholder="输入你的辩论观点,与AI进行思辨交锋"
|
|
|
|
placeholder="输入你的辩论观点,与AI进行思辨交锋"
|
|
|
|
placeholder-style="color: #ffffff; font-size: 28rpx;"
|
|
|
|
placeholder-style="color: #ffffff; font-size: 28rpx;"
|
|
|
|
auto-height
|
|
|
|
auto-height
|
|
|
@ -662,6 +662,8 @@ export default {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//--------
|
|
|
|
//--------
|
|
|
|
|
|
|
|
console.log("辩论轮数:", this.content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.content.trim()) return;
|
|
|
|
if (!this.content.trim()) return;
|
|
|
|
|
|
|
|
|
|
|
@ -757,7 +759,11 @@ export default {
|
|
|
|
useDebateStore().setConversationId(this.conversationId);
|
|
|
|
useDebateStore().setConversationId(this.conversationId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resolve(responseData.debate);
|
|
|
|
// 去除 review 字段中的反引号再返回
|
|
|
|
|
|
|
|
const cleanedDebate =
|
|
|
|
|
|
|
|
responseData.debate?.replace(/`/g, "") || "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resolve(cleanedDebate);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
reject("请求失败:" + (res.data.message || "未知错误"));
|
|
|
|
reject("请求失败:" + (res.data.message || "未知错误"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|