From bca284969dc7166bdb80aedac75d64498e97d35e Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 22 Mar 2025 18:44:09 +0800 Subject: [PATCH] no message --- language/original-api.txt | 4 ++++ language/original-web.txt | 7 ++++++ public/images/application/mybot.svg | 1 + .../manage/components/ChatInput/index.vue | 7 ++++++ .../DialogView/template/bot-hello.vue | 2 +- .../DialogView/template/bot-help.vue | 22 +++++++++---------- .../components/DialogView/template/other.vue | 2 +- .../pages/manage/components/DialogWrapper.vue | 11 ++++++++++ .../sass/pages/components/dialog-wrapper.scss | 7 ++++++ 9 files changed, 50 insertions(+), 13 deletions(-) create mode 100644 public/images/application/mybot.svg diff --git a/language/original-api.txt b/language/original-api.txt index 3b194f5de..d833723e8 100644 --- a/language/original-api.txt +++ b/language/original-api.txt @@ -840,3 +840,7 @@ AI机器人不存在 文件不存在或已被删除 报告不存在或已被删除 文件读取失败:(*) + +请输入删除备注 +删除备注长度限制(*)个字 +系统机器人不能删除 diff --git a/language/original-web.txt b/language/original-web.txt index 7abe2fcf1..6d125155e 100644 --- a/language/original-web.txt +++ b/language/original-web.txt @@ -2019,3 +2019,10 @@ API请求的URL路径 文件读取失败:(*) 独立窗口显示 在消息中显示 + +添加机器人 +消息保留 +您没有创建机器人 +清理时间 +请输入备注原因 +删除机器人:(*) diff --git a/public/images/application/mybot.svg b/public/images/application/mybot.svg new file mode 100644 index 000000000..ceeb151fc --- /dev/null +++ b/public/images/application/mybot.svg @@ -0,0 +1 @@ + diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index fb7b6e9dc..b572d29f8 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -1203,6 +1203,13 @@ export default { return ""; }, + insertText(text) { + if (this.quill) { + const {index} = this.quill.getSelection(true); + this.quill.insertText(index, text) + } + }, + setText(value) { if (this.quill) { this.quill.setText(value) diff --git a/resources/assets/js/pages/manage/components/DialogView/template/bot-hello.vue b/resources/assets/js/pages/manage/components/DialogView/template/bot-hello.vue index ff6b40b42..637de5d06 100644 --- a/resources/assets/js/pages/manage/components/DialogView/template/bot-hello.vue +++ b/resources/assets/js/pages/manage/components/DialogView/template/bot-hello.vue @@ -1,6 +1,6 @@ diff --git a/resources/assets/js/pages/manage/components/DialogView/template/bot-help.vue b/resources/assets/js/pages/manage/components/DialogView/template/bot-help.vue index 16137dc45..2c0b2fcf6 100644 --- a/resources/assets/js/pages/manage/components/DialogView/template/bot-help.vue +++ b/resources/assets/js/pages/manage/components/DialogView/template/bot-help.vue @@ -4,32 +4,32 @@

 

 

{{$L("修改机器人")}}

-

/setname{{IDLabel}} ({{$L('机器人名称')}}) - {{$L("修改机器人名称")}}

-

/deletebot{{IDLabel}} - {{$L("删除机器人")}}

-

/clearday{{IDLabel}} ({{$L('天数')}}) - {{$L("设置保留消息时间(默认30天)")}}

-

/webhook{{IDLabel}} [url] - {{$L("设置消息Webhook(详情请看 API接口文档)")}}

+

/setname{{IDLabel}} ({{$L('机器人名称')}}) - {{$L("修改机器人名称")}}

+

/deletebot{{IDLabel}} - {{$L("删除机器人")}}

+

/clearday{{IDLabel}} ({{$L('天数')}}) - {{$L("设置保留消息时间(默认30天)")}}

+

/webhook{{IDLabel}} [url] - {{$L("设置消息Webhook(详情请看 API接口文档)")}}

 

{{$L("机器人设置")}}

-

/token{{IDLabel}} - {{$L("生成Token令牌")}}

-

/revoke{{IDLabel}} - {{$L("撤销机器人Token令牌")}}

+

/token{{IDLabel}} - {{$L("生成Token令牌")}}

+

/revoke{{IDLabel}} - {{$L("撤销机器人Token令牌")}}

 

{{$L("会话管理")}}

-

/dialog{{IDLabel}} [{{$L('搜索关键词')}}] - {{$L("查看会话ID")}}

+

/dialog{{IDLabel}} [{{$L('搜索关键词')}}] - {{$L("查看会话ID")}}

 

{{$L("API接口文档")}}

-

/api - {{$L("查看接口列表")}}

+

/api - {{$L("查看接口列表")}}

diff --git a/resources/assets/js/pages/manage/components/DialogView/template/other.vue b/resources/assets/js/pages/manage/components/DialogView/template/other.vue index 248bf7dad..ac0ef5a75 100644 --- a/resources/assets/js/pages/manage/components/DialogView/template/other.vue +++ b/resources/assets/js/pages/manage/components/DialogView/template/other.vue @@ -1,6 +1,6 @@