Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
a6d49706
Commit
a6d49706
authored
May 09, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 应用插件结果返回优化
parent
daf2a679
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
6 deletions
+15
-6
execute-plugin-render.vue
...omponents/execute-plugin-render/execute-plugin-render.vue
+8
-5
useDialogueFile.ts
src/composables/useDialogueFile.ts
+3
-1
en.yaml
src/locales/langs/en.yaml
+1
-0
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-0
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-0
locales.d.ts
types/locales.d.ts
+1
-0
No files found.
src/components/execute-plugin-render/execute-plugin-render.vue
View file @
a6d49706
...
...
@@ -91,7 +91,10 @@ const parsedMarkdownPluginContent = computed(() => {
/>
<
/div
>
<
div
class
=
"flex transform flex-col duration-200 ease-in-out"
:
class
=
"isFolding ? 'h-0 overflow-hidden' : 'h-fit'"
>
<
div
class
=
"flex transform flex-col overflow-x-auto duration-200 ease-in-out"
:
class
=
"isFolding ? 'h-0 overflow-hidden' : 'h-fit'"
>
<!--
json
格式
-->
<
div
v
-
if
=
"displayFormat === 'json'"
>
<
div
class
=
"mt-[10px]"
>
...
...
@@ -124,15 +127,15 @@ const parsedMarkdownPluginContent = computed(() => {
<
/div
>
<!--
markdown
格式
-->
<
div
v
-
if
=
"displayFormat === 'markdown'"
>
<
div
v
-
else
-
if
=
"displayFormat === 'markdown'"
>
<
div
class
=
"mt-[10px]"
>
<
MarkdownRender
:
raw
-
text
-
content
=
"parsedMarkdownPluginContent"
:
font
-
size
=
"isMobile ? '3.2vw' : '14px'"
/>
<
/div
>
<
/div
>
<!--
none
格式
-->
<
div
v
-
if
=
"displayFormat === 'none'"
>
<
span
>
{{
content
}}
<
/span
>
<!--
其他
格式
-->
<
div
v
-
else
>
<
span
class
=
"mt-[10px] break-all"
>
{{
content
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/composables/useDialogueFile.ts
View file @
a6d49706
...
...
@@ -28,7 +28,9 @@ export function useDialogueFile() {
if
(
fileType
&&
!
documentTypeList
.
includes
(
fileType
)
&&
!
imageTypeList
.
includes
(
fileType
))
{
window
.
$message
.
error
(
t
(
'personal_space_module.knowledge_module.upload_document_module.upload_format_error_message'
),
t
(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.upload_file_format_error_message'
,
),
)
return
false
}
...
...
src/locales/langs/en.yaml
View file @
a6d49706
...
...
@@ -423,6 +423,7 @@ personal_space_module:
setting_voice_message
:
'
You
can
set
the
language
and
tone.
If
the
selected
language
is
inconsistent
with
the
model
language,
the
speech
cannot
be
played'
setting_voice_desc
:
'
You
can
customize
the
voice
and
timbre
for
voice
broadcast,
and
you
can
set
only
one
at
a
time.'
currently_only_one_voice_can_be_set
:
'
Currently,
you
can
set
only
one
voice'
upload_file_format_error_message
:
'
You
can
upload
only
DOC,
DOCX,
TXT,
PDF,
MD,
PNG,
JPG,
JPEG
and
WEBP
format
files.
Please
upload
them
again'
memory_variable_modal
:
edit_memory_variable
:
'
Edit
memory
variable'
...
...
src/locales/langs/zh-cn.yaml
View file @
a6d49706
...
...
@@ -421,6 +421,7 @@ personal_space_module:
setting_voice_message
:
'
你可以设置语言和音色,若所选语言与模型语言不一致,则无法播放语音'
setting_voice_desc
:
'
您可自定义语音及音色,用于语音播报,且每次仅可设置一种。'
currently_only_one_voice_can_be_set
:
'
当前仅可设置一种声音'
upload_file_format_error_message
:
'
只能上传DOC、DOCX、TXT、PDF、MD、PNG、JPG、JPEG、WEBP格式文本文件,请重新上传'
memory_variable_modal
:
edit_memory_variable
:
'
编辑记忆变量'
...
...
src/locales/langs/zh-hk.yaml
View file @
a6d49706
...
...
@@ -421,6 +421,7 @@ personal_space_module:
setting_voice_message
:
'
你可以設置語言和音色,若所選語言與模型語言不一致,則無法播放語音'
setting_voice_desc
:
'
您可自定義語音及音色,用於語音播報,且每次僅可設置一種。'
currently_only_one_voice_can_be_set
:
'
當前僅可設置一種聲音'
upload_file_format_error_message
:
'
只能上傳DOC、DOCX、TXT、PDF、MD、PNG、JPG、JPEG、WEBP格式文本文件,請重新上傳'
memory_variable_modal
:
edit_memory_variable
:
'
編輯記憶變數'
...
...
types/locales.d.ts
View file @
a6d49706
...
...
@@ -419,6 +419,7 @@ declare namespace I18n {
setting_voice_message
:
string
setting_voice_desc
:
string
currently_only_one_voice_can_be_set
:
string
upload_file_format_error_message
:
string
memory_variable_modal
:
{
edit_memory_variable
:
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment