Browse Source

优化思考过程代码

wangyi/feature-20251022162725-启动页登录注册
Ethereal 1 month ago
parent
commit
170adc5bf1
  1. 55
      pages/deepMate/deepMate.vue

55
pages/deepMate/deepMate.vue

@ -321,11 +321,9 @@ const goBlank = () => {
}; };
// //
const sendMessage = async () => {
const sendMessage = () => {
if (inputMessage.value.trim() === "" || isSending.value) return; if (inputMessage.value.trim() === "" || isSending.value) return;
const res = await getDataInfo();
console.log("数据格式为"+dataInfo.value);
const userMessage = { const userMessage = {
@ -747,8 +745,11 @@ const toggleThinking = () => {
} }
.chat-scroll-view { .chat-scroll-view {
height: calc(80vh - 250rpx); /* 根据需要调整高度 */
margin-top: 120rpx;
height: calc(80vh - 250rpx);
/* height: 80vh ; */
/* flex: 1; */
/* height: fit-content; */
margin-top: 70rpx;
} }
.message-list { .message-list {
@ -937,11 +938,11 @@ const toggleThinking = () => {
border-radius: 15rpx; border-radius: 15rpx;
} }
.panelShow { .panelShow {
height: 12%;
height: 150rpx;
position: fixed; position: fixed;
top: 70rpx; top: 70rpx;
z-index: 999; z-index: 999;
width: 95%;
width: 700rpx;
} }
.pray-banner { .pray-banner {
@ -986,74 +987,74 @@ const toggleThinking = () => {
} }
.thinking-process { .thinking-process {
margin: 10px 0;
border: 1px solid #e5e5e5;
border-radius: 8px;
margin: 20rpx 0;
border: 2rpx solid #e5e5e5;
border-radius: 2rpx;
background-color: #f9f9f9; background-color: #f9f9f9;
} }
.thinking-header { .thinking-header {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10px 15px;
padding: 20rpx 30rpx;
cursor: pointer; cursor: pointer;
background-color: #fff; background-color: #fff;
border-bottom: 1px solid #e5e5e5;
border-bottom: 2px solid #e5e5e5;
} }
.thinking-icon { .thinking-icon {
font-size: 16px;
margin-right: 8px;
font-size: 32rpx;
margin-right: 16rpx;
color: #d47c45; color: #d47c45;
} }
.thinking-title { .thinking-title {
font-size: 14px;
font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #d47c45; color: #d47c45;
margin-right: 8px;
margin-right: 16rpx;
} }
.thinking-count { .thinking-count {
font-size: 12px;
font-size: 24rpx;
color: #666; color: #666;
margin-right: 8px;
margin-right: 16rpx;
} }
.thinking-toggle { .thinking-toggle {
font-size: 12px;
font-size: 24rpx;
color: #999; color: #999;
} }
.thinking-content { .thinking-content {
padding: 10px 15px;
padding: 20rpx 30rpx;
} }
.thinking-item { .thinking-item {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 8px;
padding: 4px 0;
margin-bottom: 16rpx;
padding: 8rpx 0;
} }
.item-status { .item-status {
width: 16px;
height: 16px;
width: 32rpx;
height: 32rpx;
border-radius: 50%; border-radius: 50%;
background-color: #f0f0f0; background-color: #f0f0f0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right: 8px;
margin-right: 16rpx;
} }
.checkmark { .checkmark {
font-size: 10px;
font-size: 20rpx;
color: #ff0000; color: #ff0000;
} }
.item-text { .item-text {
font-size: 12px;
font-size: 24rpx;
color: #333; color: #333;
} }
</style> </style>
Loading…
Cancel
Save