mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-26 20:48:12 +00:00
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:
parent
42ca8f291c
commit
3ec8aa502d
@ -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) ? [{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user