模型配置个数修改,开始对话跳转修改
This commit is contained in:
@@ -499,8 +499,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedModels.size < 2) {
|
||||
showMessage('提示', '请至少选择2个模型进行对比', 'warning');
|
||||
if (selectedModels.size < 1) {
|
||||
showMessage('提示', '请至少选择1个模型进行对比', 'warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -521,8 +521,8 @@
|
||||
const result = await response.json();
|
||||
if (result.code === 0) {
|
||||
showMessage('成功', '对比任务创建成功!', 'success', () => {
|
||||
// 跳转到对比聊天页面
|
||||
window.location.href = `model-compare-chat.html?id=${result.data?.id || ''}`;
|
||||
// 跳转到模型对比列表页
|
||||
window.location.href = 'main.html?page=model-compare';
|
||||
});
|
||||
} else {
|
||||
showMessage('错误', result.message || '创建失败', 'error');
|
||||
|
||||
Reference in New Issue
Block a user