perf: Clear comments

This commit is contained in:
wangdan-fit2cloud 2025-07-21 11:27:46 +08:00
parent b5d2982812
commit 8c88d70911
15 changed files with 4 additions and 64 deletions

View File

@ -43,7 +43,6 @@
<script setup lang="ts">
import { ref, watch } from 'vue'
// import { Close } from '@element-plus/icons-vue'
const props = defineProps({
time: {
type: Number,

View File

@ -91,14 +91,4 @@ function infoMessage() {
MsgInfo(t('chat.noDocument'))
}
</script>
<style lang="scss" scoped>
// .paragraph-source-card-height {
// height: 300px;
// }
// @media only screen and (max-width: 768px) {
// .paragraph-source-card-height {
// height: 285px;
// }
// }
</style>
<style lang="scss" scoped></style>

View File

@ -16,8 +16,6 @@
}
.content {
// padding-left: var(--padding-left);
// padding-right: var(--padding-left);
:deep(ol) {
margin-left: 16px !important;

View File

@ -316,11 +316,6 @@ const openChatId: () => Promise<string> = () => {
return res.data
})
.catch((res) => {
// if (res.response.status === 403) {
// return application.asyncAppAuthentication(accessToken).then(() => {
// return openChatId()
// })
// }
return Promise.reject(res)
})
}

View File

@ -59,12 +59,6 @@ function initChart() {
tooltip: {
trigger: 'axis',
valueFormatter: (value: any) => numberFormat(value),
// axisPointer: {
// type: 'cross',
// label: {
// backgroundColor: '#6a7985'
// }
// }
},
legend: {
right: 0,

View File

@ -30,11 +30,6 @@ const props = defineProps<{
const toModelValue = computed(() => (props.valueField ? props.data[props.valueField] : props.data))
// const isChecked = computed({
// get: () => props.modelValue.includes(toModelValue.value)),
// set: (val) => val
// })
const emit = defineEmits(['update:modelValue', 'change'])
const checked = () => {

View File

@ -165,7 +165,6 @@ onMounted(() => {
formValue.value.minlength = 0
formValue.value.maxlength = 200
formValue.value.default_value = ''
// console.log(formValue.value.show_default_value)
if (formValue.value.show_default_value === undefined) {
formValue.value.show_default_value = true
}

View File

@ -183,16 +183,6 @@ watch(dialogVisible, (bool) => {
}
}
})
// watch(
// () => form.value.authentication,
// (b) => {
// if (b) {
// applicationApi.getChatUserAuthType().then((ok) => {
// auth_list.value = ok.data
// })
// }
// },
// )
const open = (data: any) => {
form.value.access_num = data.access_num
form.value.white_active = data.white_active

View File

@ -260,20 +260,6 @@ const isWorkflowType = ref(false)
watch(dialogVisible, (bool) => {
if (!bool) {
// form.value = {
// knowledge_setting: {
// search_mode: 'embedding',
// top_n: 3,
// similarity: 0.6,
// max_paragraph_char_number: 5000,
// no_references_setting: {
// status: 'ai_questioning',
// value: '{question}'
// }
// },
// problem_optimization: false,
// problem_optimization_prompt: ''
// }
noReferencesform.value = {
ai_questioning: defaultValue['ai_questioning'],
designated_answer: defaultValue['designated_answer'],

View File

@ -509,7 +509,6 @@ async function openExecutionDetail(row: any) {
async function openKnowledgeSource(row: any) {
rightPanelTitle.value = t('chat.KnowledgeSource.title')
rightPanelType.value = 'knowledgeSource'
// TODO
rightPanelDetail.value = row
rightPanelSize.value = 400
}

View File

@ -40,7 +40,6 @@ const props = defineProps<{ tabs: Tab[] }>()
const activeKey = ref('')
const allConfigs = ref<PlatformConfig[]>([])
const config = ref<Config>({ app_key: '', app_secret: '' })
// const logoUrl = ref('')
const { login } = useStore()
async function getPlatformInfo() {
try {

View File

@ -20,7 +20,7 @@
v-model="data.is_active"
:before-change="() => changeState(data)"
size="small"
v-if="permissionPrecise.doc_edit(id)"
v-if="permissionPrecise.doc_edit(id)"
/>
<el-divider direction="vertical" />
@ -222,7 +222,7 @@ function editParagraph(row: any) {
const cardClick = permissionPrecise.value.doc_edit(id)
function handleClickCard(row: any) {
if (!cardClick || dialogVisible.value)
if (!cardClick || dialogVisible.value)
{return }
if (!props.disabled) {
editParagraph(row)
@ -301,4 +301,4 @@ watch(dialogVisible, (val: boolean)=>{
display: none;
}
}
</style>
</style>

View File

@ -222,7 +222,6 @@ const update_field = () => {
set(props.nodeModel.properties, 'status', 500)
return
}
// todo
applicationApi
.getApplicationDetail(props.nodeModel.properties.node_data.application_id)
.then((ok) => {

View File

@ -127,7 +127,6 @@ const update_field = () => {
set(props.nodeModel.properties, 'status', 500)
return
}
//todo
ToolApi.getToolById(props.nodeModel.properties.node_data.tool_lib_id)
.then((ok) => {
const old_input_field_list = props.nodeModel.properties.node_data.input_field_list

View File

@ -36,12 +36,10 @@ export default defineConfig((conf: any) => {
const ENV = loadEnv(mode, envDir)
const proxyConf: Record<string, string | ProxyOptions> = {}
proxyConf['/admin/api'] = {
// target: 'http://47.92.195.88:8080/',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
}
proxyConf['/chat/api'] = {
// target: 'http://47.92.195.88:8080/',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
}