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:
kuaifan 2026-01-25 15:11:57 +00:00
parent 28beb7fe5e
commit 42ca8f291c

View File

@ -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('总结'),
},
]
}];