Skip to content

Commit 2fdda92

Browse files
committed
feat: chat select datasource
1 parent 8033f9d commit 2fdda92

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

frontend/src/views/chat/WelcomeBlock.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {useI18n} from 'vue-i18n'
88
99
const {t} = useI18n()
1010
const props = withDefaults(defineProps<{
11-
modelValue?: number
12-
currentChat: ChatInfo
13-
}>(),
14-
{}
11+
modelValue?: number
12+
currentChat: ChatInfo
13+
}>(),
14+
{}
1515
)
1616
1717
const dsList = ref<Array<any>>([])
@@ -67,7 +67,7 @@ function selectDsInDialog(ds: any) {
6767
innerDs.value = ds.id
6868
}
6969
70-
function comfirmSelectDs() {
70+
function confirmSelectDs() {
7171
if (innerDs.value) {
7272
emits("update:modelValue", innerDs.value)
7373
dialogVisible.value = false
@@ -114,7 +114,7 @@ onMounted(() => {
114114
</div>
115115

116116

117-
<el-drawer v-model="dialogVisible" title="Choose Datasource" width="800" ref="DatasourceListRef" direction="btt"
117+
<el-drawer v-model="dialogVisible" title="Choose Datasource" ref="DatasourceListRef" direction="btt"
118118
size="100%">
119119
<el-scrollbar>
120120
<div class="ds-row-container">
@@ -127,7 +127,7 @@ onMounted(() => {
127127
<template #footer>
128128
<div class="dialog-footer">
129129
<el-button @click="dialogVisible = false">Cancel</el-button>
130-
<el-button type="primary" @click="comfirmSelectDs">
130+
<el-button type="primary" @click="confirmSelectDs">
131131
Confirm
132132
</el-button>
133133
</div>
@@ -171,4 +171,4 @@ onMounted(() => {
171171
}
172172
173173
174-
</style>
174+
</style>

0 commit comments

Comments
 (0)