mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-26 20:48:12 +00:00
style(ai): 调整 AI 命令菜单显示顺序为命令在前描述在后
/analyze 分析 -> /analyze | 分析 /summarize 总结 -> /summarize | 总结 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
parent
28beb7fe5e
commit
42ca8f291c
@ -1256,9 +1256,9 @@ export default {
|
||||
}
|
||||
if (["@", "#", "~", "%"].includes(item.tip)) {
|
||||
this.openMenu(item.tip);
|
||||
} else if (['/analyze', '/summarize'].includes(item.tip)) {
|
||||
} else if (['/analyze', '/summarize'].includes(item.value)) {
|
||||
// AI 命令:调用后端 API
|
||||
const command = item.tip.slice(1);
|
||||
const command = item.value.slice(1);
|
||||
$A.apiCall({
|
||||
url: 'dialog/ai/command',
|
||||
method: 'post',
|
||||
@ -2742,13 +2742,13 @@ export default {
|
||||
// /analyze 仅在任务和项目对话中显示
|
||||
...(['task', 'project'].includes(this.dialogData?.group_type) ? [{
|
||||
id: 'analyze',
|
||||
value: this.$L('分析'),
|
||||
tip: '/analyze',
|
||||
value: '/analyze',
|
||||
tip: this.$L('分析'),
|
||||
}] : []),
|
||||
{
|
||||
id: 'summarize',
|
||||
value: this.$L('总结'),
|
||||
tip: '/summarize',
|
||||
value: '/summarize',
|
||||
tip: this.$L('总结'),
|
||||
},
|
||||
]
|
||||
}];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user