Skip to content

Commit 8c88d70

Browse files
perf: Clear comments
1 parent b5d2982 commit 8c88d70

File tree

15 files changed

+4
-64
lines changed

15 files changed

+4
-64
lines changed

ui/src/components/ai-chat/component/chat-input-operate/TouchChat.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
<script setup lang="ts">
4545
import { ref, watch } from 'vue'
46-
// import { Close } from '@element-plus/icons-vue'
4746
const props = defineProps({
4847
time: {
4948
type: Number,

ui/src/components/ai-chat/component/knowledge-source-component/ParagraphCard.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,4 @@ function infoMessage() {
9191
MsgInfo(t('chat.noDocument'))
9292
}
9393
</script>
94-
<style lang="scss" scoped>
95-
// .paragraph-source-card-height {
96-
// height: 300px;
97-
// }
98-
99-
// @media only screen and (max-width: 768px) {
100-
// .paragraph-source-card-height {
101-
// height: 285px;
102-
// }
103-
// }
104-
</style>
94+
<style lang="scss" scoped></style>

ui/src/components/ai-chat/index.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
}
1717

1818
.content {
19-
// padding-left: var(--padding-left);
20-
// padding-right: var(--padding-left);
2119

2220
:deep(ol) {
2321
margin-left: 16px !important;

ui/src/components/ai-chat/index.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,6 @@ const openChatId: () => Promise<string> = () => {
316316
return res.data
317317
})
318318
.catch((res) => {
319-
// if (res.response.status === 403) {
320-
// return application.asyncAppAuthentication(accessToken).then(() => {
321-
// return openChatId()
322-
// })
323-
// }
324319
return Promise.reject(res)
325320
})
326321
}

ui/src/components/app-charts/components/LineCharts.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ function initChart() {
5959
tooltip: {
6060
trigger: 'axis',
6161
valueFormatter: (value: any) => numberFormat(value),
62-
// axisPointer: {
63-
// type: 'cross',
64-
// label: {
65-
// backgroundColor: '#6a7985'
66-
// }
67-
// }
6862
},
6963
legend: {
7064
right: 0,

ui/src/components/card-checkbox/index.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ const props = defineProps<{
3030
3131
const toModelValue = computed(() => (props.valueField ? props.data[props.valueField] : props.data))
3232
33-
// const isChecked = computed({
34-
// get: () => props.modelValue.includes(toModelValue.value)),
35-
// set: (val) => val
36-
// })
37-
3833
const emit = defineEmits(['update:modelValue', 'change'])
3934
4035
const checked = () => {

ui/src/components/dynamics-form/constructor/items/TextInputConstructor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ onMounted(() => {
165165
formValue.value.minlength = 0
166166
formValue.value.maxlength = 200
167167
formValue.value.default_value = ''
168-
// console.log(formValue.value.show_default_value)
169168
if (formValue.value.show_default_value === undefined) {
170169
formValue.value.show_default_value = true
171170
}

ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,6 @@ watch(dialogVisible, (bool) => {
183183
}
184184
}
185185
})
186-
// watch(
187-
// () => form.value.authentication,
188-
// (b) => {
189-
// if (b) {
190-
// applicationApi.getChatUserAuthType().then((ok) => {
191-
// auth_list.value = ok.data
192-
// })
193-
// }
194-
// },
195-
// )
196186
const open = (data: any) => {
197187
form.value.access_num = data.access_num
198188
form.value.white_active = data.white_active

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,6 @@ const isWorkflowType = ref(false)
260260
261261
watch(dialogVisible, (bool) => {
262262
if (!bool) {
263-
// form.value = {
264-
// knowledge_setting: {
265-
// search_mode: 'embedding',
266-
// top_n: 3,
267-
// similarity: 0.6,
268-
// max_paragraph_char_number: 5000,
269-
// no_references_setting: {
270-
// status: 'ai_questioning',
271-
// value: '{question}'
272-
// }
273-
// },
274-
// problem_optimization: false,
275-
// problem_optimization_prompt: ''
276-
// }
277263
noReferencesform.value = {
278264
ai_questioning: defaultValue['ai_questioning'],
279265
designated_answer: defaultValue['designated_answer'],

ui/src/views/chat/pc/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ async function openExecutionDetail(row: any) {
509509
async function openKnowledgeSource(row: any) {
510510
rightPanelTitle.value = t('chat.KnowledgeSource.title')
511511
rightPanelType.value = 'knowledgeSource'
512-
// TODO 数据
513512
rightPanelDetail.value = row
514513
rightPanelSize.value = 400
515514
}

0 commit comments

Comments
 (0)