diff --git a/deploy/nginx.conf.tmpl b/deploy/nginx.conf.tmpl index 7aefa26cc50d0cf5fcf96128a3dc82ccf6f6d1dc..22039aa20df73234c1a730728b8daed3173f2070 100644 --- a/deploy/nginx.conf.tmpl +++ b/deploy/nginx.conf.tmpl @@ -63,6 +63,11 @@ http { server_name localhost; charset utf-8; + add_header 'Access-Control-Allow-Origin' '*'; # 允许所有源 + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; # 允许的HTTP方法 + add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization'; # 允许的请求头 + add_header 'Access-Control-Expose-Headers' 'Content-Length, Content-Range'; # 允许前端访问的响应头 + add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options nosniff; add_header Referrer-Policy "no-referrer"; diff --git a/src/components/dialoguePanel/DialoguePanel.vue b/src/components/dialoguePanel/DialoguePanel.vue index 8d476517d10b2a0293c7abb32f81ba6d56bc8891..75d07c720e07122acd4034a58a54b5e66b154e19 100644 --- a/src/components/dialoguePanel/DialoguePanel.vue +++ b/src/components/dialoguePanel/DialoguePanel.vue @@ -124,7 +124,7 @@ const generateContent = (content: string) => { let result = ''; props.fileList?.forEach((file)=>{ if (file.documentOrder === Number(content)) { - result += ``; + result += ``; result += `
${file?.documentName || ''}
`; result = `
${result}
`; result += `
${file?.documentAbstract || ''}
`; diff --git a/src/views/createapp/components/AgentAppConfig.vue b/src/views/createapp/components/AgentAppConfig.vue index 8a76760f07a2d9c02d2d4ee8fe3c21f6c3ecbec9..0970864978ebb6886712055f42e53e8a7af99d00 100644 --- a/src/views/createapp/components/AgentAppConfig.vue +++ b/src/views/createapp/components/AgentAppConfig.vue @@ -714,7 +714,7 @@ onMounted(async () => { font-size: 16px; font-weight: 700; color: #000; - height: 24px; + // height: 24px; } .el-collapse-item__content { margin: 0; diff --git a/src/views/createapp/components/DebugApp.vue b/src/views/createapp/components/DebugApp.vue index 763755d1acf4ea95dd74c89f5997d6fc3b8b31c0..c05211ce0c6ac2fb6bc26b8024afb4ca63202747 100644 --- a/src/views/createapp/components/DebugApp.vue +++ b/src/views/createapp/components/DebugApp.vue @@ -464,7 +464,7 @@ watch( .chat-container { width: 100%; - height: 57%; + height: 76%; min-height: 340px; overflow: auto;