refactor: refactor doc

This commit is contained in:
wangjiahao
2025-12-31 09:22:53 +08:00
parent b158ed4da1
commit 939481fae4
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -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(() => {
+1 -1
View File
@@ -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') },
},