|
@@ -112,9 +112,11 @@ export default {
|
|
|
document: "",
|
|
|
},
|
|
|
currentChat_id:'',
|
|
|
+ phone:''
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ localStorage.removeItem("AIData")
|
|
|
this.checkAIData();
|
|
|
if (this.$route.name == "ai") {
|
|
|
/* 外部知识库 */
|
|
@@ -129,6 +131,7 @@ export default {
|
|
|
if (AIData && AIData.data) {
|
|
|
console.log(AIData);
|
|
|
this.wsUrl = AIData.data.url || "";
|
|
|
+ this.phone=AIData.data.phone || ""
|
|
|
this.tweaks = AIData.data.tweaks || {};
|
|
|
} else {
|
|
|
console.error("Invalid AIData structure");
|
|
@@ -322,7 +325,7 @@ export default {
|
|
|
/* output_type: "chat",
|
|
|
input_type: "chat", */
|
|
|
chat_config_id:'3',//this.currentChat_id,
|
|
|
- user_id: this.tweaks['Memory-KtRT7'].session_id,//this.tweaks.Memory-KtRT7.session_id,
|
|
|
+ user_id: this.phone,//this.tweaks.Memory-KtRT7.session_id,
|
|
|
session_id: this.session_id || ""/* {
|
|
|
"ChatInput-U82Vu": {},
|
|
|
"Prompt-b8Z1E": {},
|
|
@@ -733,9 +736,9 @@ export default {
|
|
|
max-width: 90%; /* 限制最大宽度,避免超出视口 */
|
|
|
margin: 0 auto; /* 上下保持原有的 margin,左右自动调整以居中 */
|
|
|
overflow-y: auto; /* 如果消息太多,允许滚动 */
|
|
|
- height: calc(100vh - 230px); /* 高度需要根据输入框和其他元素的高度调整 */
|
|
|
+ height: calc(100vh - 130px); /* 高度需要根据输入框和其他元素的高度调整 */
|
|
|
padding: 10px; /* 或你希望的内边距大小 */
|
|
|
- margin-bottom: 120px;
|
|
|
+ /* margin-bottom: 120px; */
|
|
|
}
|
|
|
/* 针对手机端的媒体查询 */
|
|
|
@media screen and (max-width: 768px) {
|
|
@@ -743,7 +746,7 @@ export default {
|
|
|
width: 100%;
|
|
|
max-width: 100%;
|
|
|
margin: 0;
|
|
|
- margin-bottom: 120px;
|
|
|
+ /* margin-bottom: 120px; */
|
|
|
}
|
|
|
}
|
|
|
.user-message {
|