Skip to content

Commit c1a403b

Browse files
fix: description
1 parent 902a97c commit c1a403b

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

ui/src/locales/lang/en-US/components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
noData: 'No Data',
55
loading: 'Loading',
66
noMore: 'No more! ',
7+
noDesc: ' No description',
78
selectParagraph: {
89
title: 'Select Segments',
910
error: 'Process only the failed segments',

ui/src/locales/lang/zh-CN/components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
error: '仅执行未成功分段',
1010
all: '全部分段',
1111
},
12+
noDesc: '暂无描述',
1213
folder: {
1314
addFolder: '添加文件夹',
1415
addChildFolder: '添加子文件夹',

ui/src/locales/lang/zh-Hant/components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
noData: '無匹配数据',
55
loading: '加載中',
66
noMore: '到底啦!',
7+
noDesc: '暂无描述',
78
selectParagraph: {
89
title: '選擇分段',
910
error: '僅執行未成功分段',

ui/src/views/application/component/AddKnowledgeDialog.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
</el-text>
2121
</div>
2222

23-
<div class="flex align-center mr-8">
24-
<el-button link class="mr-16" @click="refresh">
25-
<el-icon class="mr-4" :size="18"><Refresh /></el-icon>
26-
</el-button>
27-
</div>
23+
<el-button link class="mr-24" @click="refresh">
24+
<el-icon :size="18"><Refresh /></el-icon>
25+
</el-button>
2826
</div>
2927
</template>
3028
<LayoutContainer class="application-manage">
@@ -252,7 +250,7 @@ defineExpose({ open })
252250
}
253251
254252
.el-dialog__headerbtn {
255-
top: 6px;
253+
top: 3px;
256254
right: 6px;
257255
}
258256
}

ui/src/views/application/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
>
154154
<CardBox
155155
:title="item.name"
156-
:description="item.desc || $t('common.noData')"
156+
:description="item.desc || $t('components.noDesc')"
157157
class="cursor"
158158
@click="clickFolder(item)"
159159
>

ui/src/views/knowledge/component/KnowledgeListContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
>
159159
<CardBox
160160
:title="item.name"
161-
:description="item.desc || $t('common.noData')"
161+
:description="item.desc || $t('components.noDesc')"
162162
class="cursor"
163163
@click="clickFolder(item)"
164164
>

ui/src/views/tool/component/ToolListContainer.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
<div
108108
v-loading.fullscreen.lock="paginationConfig.current_page === 1 && loading"
109-
style="max-height: calc(100vh - 120px)"
109+
style="max-height: calc(100vh - 120px)"
110110
>
111111
<InfiniteScroll
112112
:size="tool.toolList.length"
@@ -129,7 +129,7 @@
129129
>
130130
<CardBox
131131
:title="item.name"
132-
:description="item.desc || $t('common.noData')"
132+
:description="item.desc || $t('components.noDesc')"
133133
class="cursor"
134134
@click="clickFolder(item)"
135135
>
@@ -238,7 +238,9 @@
238238
{{ $t('common.copy') }}
239239
</el-dropdown-item>
240240
<el-dropdown-item
241-
v-if="item.init_field_list?.length > 0 && permissionPrecise.edit(item.id)"
241+
v-if="
242+
item.init_field_list?.length > 0 && permissionPrecise.edit(item.id)
243+
"
242244
@click.stop="configInitParams(item)"
243245
>
244246
<AppIcon iconName="app-operation" class="mr-4"></AppIcon>
@@ -566,7 +568,6 @@ function importTool(file: any) {
566568
})
567569
.then(() => {
568570
getList()
569-
570571
})
571572
.catch((e: any) => {
572573
if (e.code === 400) {

0 commit comments

Comments
 (0)