style(chat): 统一斜杠菜单显示格式为命令在前描述在后

@ 提及、# 任务、~ 文件、% 工作报告 均调整为命令符号在前

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:13:12 +00:00
parent 42ca8f291c
commit 3ec8aa502d

View File

@ -1254,8 +1254,8 @@ export default {
this.quill.deleteText(mentionCharPos, cursorPos - mentionCharPos, Quill.sources.USER); this.quill.deleteText(mentionCharPos, cursorPos - mentionCharPos, Quill.sources.USER);
this.quill.setSelection(mentionCharPos, 0, Quill.sources.USER); this.quill.setSelection(mentionCharPos, 0, Quill.sources.USER);
} }
if (["@", "#", "~", "%"].includes(item.tip)) { if (["@", "#", "~", "%"].includes(item.value)) {
this.openMenu(item.tip); this.openMenu(item.value);
} else if (['/analyze', '/summarize'].includes(item.value)) { } else if (['/analyze', '/summarize'].includes(item.value)) {
// AI API // AI API
const command = item.value.slice(1); const command = item.value.slice(1);
@ -2721,23 +2721,23 @@ export default {
list: [ list: [
{ {
id: 'mention', id: 'mention',
value: this.$L('提及'), value: '@',
tip: '@', tip: this.$L('提及'),
}, },
{ {
id: 'task', id: 'task',
value: this.$L('任务'), value: '#',
tip: '#', tip: this.$L('任务'),
}, },
{ {
id: 'file', id: 'file',
value: this.$L('文件'), value: '~',
tip: '~', tip: this.$L('文件'),
}, },
{ {
id: 'report', id: 'report',
value: this.$L('工作报告'), value: '%',
tip: '%', tip: this.$L('工作报告'),
}, },
// /analyze // /analyze
...(['task', 'project'].includes(this.dialogData?.group_type) ? [{ ...(['task', 'project'].includes(this.dialogData?.group_type) ? [{