mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-03 03:18: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.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) ? [{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user