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