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