Skip to content

Commit e3860ba

Browse files
perf: Copywriting
1 parent 77e4d24 commit e3860ba

5 files changed

Lines changed: 15 additions & 13 deletions

File tree

ui/src/layout/layout-header/top-about/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ function toUrl(url: string) {
105105
margin-left: 4px !important;
106106
}
107107
.active {
108-
background: #ffffff;
108+
background-color: #ffffff;
109+
box-shadow: 0px 2px 4px 0px rgba(var(--el-text-color-primary-rgb), 0.12);
109110
&:hover {
110111
background: #ffffff;
111112
}

ui/src/locales/lang/en-US/views/document.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
fileLimitSizeTip1: 'each file must not exceed',
2929
toImportDocConfirm:
3030
'The workflow of the current knowledge base is not published, and documents cannot be imported. Please publish the workflow first.',
31-
fileLimitSizeTip2: 'size must not exceed',
31+
fileLimitSizeTip2: 'size must not exceed',
3232
},
3333
upload: {
3434
selectFile: 'Select File',
@@ -180,9 +180,8 @@ export default {
180180
placeholder: 'Directly return segment content',
181181
requiredMessage: 'Please enter similarity value',
182182
},
183-
allow_download: {
184-
label: 'Allow download in knowledge base source',
185-
},
183+
allow_download: 'Allow download in knowledge base source',
184+
allow_preview: 'Allow preview in knowledge base source',
186185
},
187186
hitHandlingMethod: {
188187
optimization: 'Model optimization',

ui/src/locales/lang/zh-CN/views/document.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ export default {
170170
placeholder: '直接返回分段内容',
171171
requiredMessage: '请输入相似度',
172172
},
173-
allow_download: {
174-
label: '允许在知识库来源中下载',
175-
},
173+
allow_download: '允许在知识来源中下载',
174+
allow_preview: '允许在知识来源中预览',
176175
},
177176
hitHandlingMethod: {
178177
optimization: '模型优化',

ui/src/locales/lang/zh-Hant/views/document.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,8 @@ export default {
171171
placeholder: '直接返回分段内容',
172172
requiredMessage: '请输入相似度',
173173
},
174-
allow_download: {
175-
label: '允許在知識庫來源下載',
176-
},
174+
allow_download: '允許在知識來源中下載',
175+
allow_preview: '允許在知識來源中預覽',
177176
},
178177
hitHandlingMethod: {
179178
optimization: '模型優化',

ui/src/views/document/component/ImportDocumentDialog.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
</el-form-item>
8383
<el-form-item prop="allow_download">
8484
<el-checkbox v-model="form.allow_download">
85-
{{ $t('views.document.form.allow_download.label') }}
85+
{{
86+
type === '1'
87+
? $t('views.document.form.allow_preview')
88+
: $t('views.document.form.allow_download')
89+
}}
8690
</el-checkbox>
8791
</el-form-item>
8892
</el-form>
@@ -106,7 +110,7 @@ import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
106110
import { t } from '@/locales'
107111
const route = useRoute()
108112
const {
109-
params: { id },
113+
params: { id, type },
110114
} = route as any
111115
112116
const props = defineProps({

0 commit comments

Comments
 (0)