Skip to content

Commit 3cd7b29

Browse files
fix: 【应用】简单配置中对过长名称知识库进行关联时有概率导致无法显示知识库全部名称(#1596)
1 parent 20fa075 commit 3cd7b29

File tree

6 files changed

+26
-565
lines changed

6 files changed

+26
-565
lines changed

ui/src/components/infinite-scroll/index.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
</template>
1414
<script setup lang="ts">
15-
import { ref, computed } from 'vue'
15+
import { ref, computed, watch } from 'vue'
1616
1717
defineOptions({ name: 'InfiniteScroll' })
1818
const props = defineProps({
@@ -47,6 +47,14 @@ const props = defineProps({
4747
const emit = defineEmits(['update:current_page', 'load'])
4848
const current = ref(props.current_page)
4949
50+
watch(
51+
() => props.current_page,
52+
(val) => {
53+
if (val === 1) {
54+
current.value = 1
55+
}
56+
}
57+
)
5058
const noMore = computed(
5159
() =>
5260
props.size > 0 && props.size === props.total && props.total > props.page_size && !props.loading

ui/src/router/modules/application.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ const applicationRouter = {
1212
name: 'application',
1313
component: () => import('@/views/application/index.vue')
1414
},
15-
{
16-
path: '/application/create',
17-
name: 'CreateApplication',
18-
meta: { activeMenu: '/application' },
19-
component: () => import('@/views/application/CreateAndSetting.vue'),
20-
hidden: true
21-
},
2215
{
2316
path: '/application/:id/:type',
2417
name: 'ApplicationDetail',

ui/src/router/modules/dataset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const datasetRouter = {
1212
component: () => import('@/views/dataset/index.vue')
1313
},
1414
{
15-
path: '/dataset/:type', // create 或者 upload
15+
path: '/dataset/:type', // upload
1616
name: 'UploadDocumentDataset',
1717
meta: { activeMenu: '/dataset' },
1818
component: () => import('@/views/dataset/UploadDocumentDataset.vue'),

ui/src/views/application/ApplicationSetting.vue

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@
252252
<AppAvatar v-else class="mr-8 avatar-blue" shape="square" :size="32">
253253
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
254254
</AppAvatar>
255-
<auto-tooltip
256-
:content="relatedObject(datasetList, item, 'id')?.name"
257-
style="width: 80%"
255+
<span
256+
class="ellipsis cursor"
257+
:title="relatedObject(datasetList, item, 'id')?.name"
258+
>
259+
{{ relatedObject(datasetList, item, 'id')?.name }}</span
258260
>
259-
{{ relatedObject(datasetList, item, 'id')?.name }}
260-
</auto-tooltip>
261261
</div>
262262
<el-button text @click="removeDataset(item)">
263263
<el-icon>
@@ -326,7 +326,11 @@
326326
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
327327
</el-tooltip> -->
328328
</div>
329-
<el-switch size="small" v-model="applicationForm.stt_model_enable" @change="sttModelEnableChange"/>
329+
<el-switch
330+
size="small"
331+
v-model="applicationForm.stt_model_enable"
332+
@change="sttModelEnableChange"
333+
/>
330334
</div>
331335
</template>
332336
<el-select
@@ -406,7 +410,11 @@
406410
<el-icon class="mr-4"><Setting /></el-icon>
407411
设置
408412
</el-button>
409-
<el-switch size="small" v-model="applicationForm.tts_model_enable" @change="ttsModelEnableChange"/>
413+
<el-switch
414+
size="small"
415+
v-model="applicationForm.tts_model_enable"
416+
@change="ttsModelEnableChange"
417+
/>
410418
</div>
411419
</div>
412420
</template>

0 commit comments

Comments
 (0)