优化新建会话逻辑
This commit is contained in:
@@ -1786,10 +1786,10 @@ export const addConversationAgent = (token, agent_id) => {
|
||||
const respond = res.data
|
||||
// 返回格式: { success: true, title: "...", conversation_id: "...", workspace_id: "..." }
|
||||
if (respond?.success && respond?.conversation_id) {
|
||||
// 保存 workspace_id 到本地存储
|
||||
if (respond.workspace_id) {
|
||||
uni.setStorageSync('workspace_id', respond.workspace_id)
|
||||
}
|
||||
// // 保存 workspace_id 到本地存储
|
||||
// if (respond.workspace_id) {
|
||||
// uni.setStorageSync('workspace_id', respond.workspace_id)
|
||||
// }
|
||||
resolve({
|
||||
conversation_id: respond.conversation_id,
|
||||
workspace_id: respond.workspace_id,
|
||||
|
||||
Reference in New Issue
Block a user