mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-27 04:58: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)) {
|
if (["@", "#", "~", "%"].includes(item.tip)) {
|
||||||
this.openMenu(item.tip);
|
this.openMenu(item.tip);
|
||||||
} else if (['/analyze', '/summarize'].includes(item.tip)) {
|
} else if (['/analyze', '/summarize'].includes(item.value)) {
|
||||||
// AI 命令:调用后端 API
|
// AI 命令:调用后端 API
|
||||||
const command = item.tip.slice(1);
|
const command = item.value.slice(1);
|
||||||
$A.apiCall({
|
$A.apiCall({
|
||||||
url: 'dialog/ai/command',
|
url: 'dialog/ai/command',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -2742,13 +2742,13 @@ export default {
|
|||||||
// /analyze 仅在任务和项目对话中显示
|
// /analyze 仅在任务和项目对话中显示
|
||||||
...(['task', 'project'].includes(this.dialogData?.group_type) ? [{
|
...(['task', 'project'].includes(this.dialogData?.group_type) ? [{
|
||||||
id: 'analyze',
|
id: 'analyze',
|
||||||
value: this.$L('分析'),
|
value: '/analyze',
|
||||||
tip: '/analyze',
|
tip: this.$L('分析'),
|
||||||
}] : []),
|
}] : []),
|
||||||
{
|
{
|
||||||
id: 'summarize',
|
id: 'summarize',
|
||||||
value: this.$L('总结'),
|
value: '/summarize',
|
||||||
tip: '/summarize',
|
tip: this.$L('总结'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}];
|
}];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user