mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: refactor doc
This commit is contained in:
@@ -15,7 +15,7 @@ const getRecommendQuestions = () => {
|
||||
|
||||
const questions = '[]'
|
||||
const retrieveQuestions = () => {
|
||||
getRecommendQuestions()
|
||||
recommendQuestionRef.value.getRecommendQuestionsLLM(10)
|
||||
recentQuestionRef.value.getRecentQuestions()
|
||||
}
|
||||
const quickAsk = (question: string) => {
|
||||
|
||||
@@ -148,7 +148,7 @@ onBeforeUnmount(() => {
|
||||
stop()
|
||||
})
|
||||
|
||||
defineExpose({ getRecommendQuestions, id: () => props.recordId, stop })
|
||||
defineExpose({ getRecommendQuestions, id: () => props.recordId, stop, getRecommendQuestionsLLM })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -48,6 +48,10 @@ const props = defineProps({
|
||||
type: String,
|
||||
default: 'canvas-main',
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
|
||||
const { configItem } = toRefs(props)
|
||||
@@ -118,7 +122,7 @@ const beforeHandleCommand = (item: any, param: any) => {
|
||||
param: param,
|
||||
}
|
||||
}
|
||||
const isEditMode = computed(() => props.showPosition === 'canvas')
|
||||
const isEditMode = computed(() => props.showPosition === 'canvas' && !props.disabled)
|
||||
const outResizeEnd = () => {
|
||||
state.tabShow = false
|
||||
nextTick(() => {
|
||||
|
||||
@@ -175,7 +175,7 @@ const filterOption = ref<any[]>([
|
||||
type: 'select',
|
||||
option: [],
|
||||
field: 'oid_list',
|
||||
title: t('audit.operation_user_name'),
|
||||
title: t('audit.oid_name'),
|
||||
operate: 'in',
|
||||
property: { placeholder: t('common.empty') + t('audit.oid_name') },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user