From 9d2851fd93323581ea382d5191e2dbb90642b963 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期三, 18 六月 2025 09:11:26 +0800
Subject: [PATCH] refactor(config): 更新线上环境 API 地址

---
 pages/aiQuestions/aiQuestions.vue |   30 +++++++++++++++++++++---------
 1 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/pages/aiQuestions/aiQuestions.vue b/pages/aiQuestions/aiQuestions.vue
index 4ee83c8..3b04f89 100644
--- a/pages/aiQuestions/aiQuestions.vue
+++ b/pages/aiQuestions/aiQuestions.vue
@@ -63,9 +63,9 @@
 						</view>
 						<view style="font-size: 26rpx;"  v-html="markdown.render(item.aiLog)"></view>
 						<view class="file-list" v-if="item.docInfo.length&&item.isEnd">
-							<view class="one-file" v-for="(file,findex) in item.docInfo" :key='findex'>
+							<view class="one-file" @click="uploadFile(file)" v-for="(file,findex) in item.docInfo" :key='findex'>
 								<image :src="getImg(file.docFormat)" mode=""></image>
-								<text>{{file.docName}}</text>
+								<text style="font-size: 26rpx;">{{file.docName}}</text>
 							</view>
 						</view>
 						<view v-if="item.isEnd||item.logSound" class="u-flex u-p-h-10 function-box">
@@ -130,8 +130,9 @@
 					<image src="/static/wd/i02.png" v-if="msg&&!isDisabled" class="btnimg" @click="tiWen"
 						mode="widthFix" alt=""></image>
 				</block>
-			</view>
+				</view>
 		</view>
+		<view class="tipsMsg"> 鍐呭鐢� AI 鐢熸垚锛屼粎渚涘弬鑰冿紝鎮ㄦ嵁姝ゆ墍浣滃垽鏂強鎿嶄綔鍧囩敱鎮ㄨ嚜琛屾壙鎷呰矗浠汇��</view>
 		<!--璁剧疆寮圭獥 -->
 		<u-popup v-model="showSet" mode='top' border-radius="20">
 			<view class='set-box'>
@@ -409,6 +410,9 @@
 			document.removeEventListener('contextmenu', this.noContextmenu)
 		},
 		methods: {
+			uploadFile(file) {
+				window.open(this.baseUrl + file.docPath)
+			},
 			chooseThisLLM(e) {
 				this.chooseLlm = e;
 			},
@@ -832,8 +836,9 @@
 				}
 				// 瑙g爜鏁版嵁鏁扮粍鐨勫墠鍗婇儴鍒嗭紝骞舵彁鍙栨枃妗D
 				const idStr = textDecoder.decode(dataArr.slice(0, idx)).trim()
-				const idArr = idStr.substring(idStr.indexOf("锛�") + 1).match(/\d+/g)
-				const docIds = idArr.join(',')
+				// const idArr = idStr.substring(idStr.indexOf("锛�") + 1).match(/\d+/g)
+				const idArr = idStr.substring(idStr.indexOf("锛�") + 1)
+				const docIds = idArr.split(',')
 				// 濡傛灉鏂囨。ID鏈夋晥涓斾笉涓�'0'锛屽垯鏌ヨ鏂囨。
 				if (docIds && docIds !== '0' && !this.suspend) {
 					// 鏍规嵁鏂囨。ID鍒楄〃鑾峰彇鏂囨。淇℃伅
@@ -855,7 +860,7 @@
 							// lastMsgBot.scrollIntoView(false)
 						})
 					})
-					return idArr.join(',')
+					return idArr.split(',')
 				}
 				return docIds
 			},
@@ -1365,10 +1370,17 @@
 			}
 		}
 	}
-
+	.tipsMsg{
+		position: fixed;
+		bottom: 0rpx;
+		text-align: center;
+		color: #c0c4cc;
+		height: 80rpx;
+		font-size: 26rpx;
+	}
 	.btmbox {
 		position: fixed;
-		bottom: 0;
+		bottom: 80rpx;
 		height: 120rpx;
 		background-color: #F3F5F9;
 		display: flex;
@@ -1568,7 +1580,7 @@
 				}
 
 				text {
-					font-size: 30rpx;
+					font-size: 26rpx;
 					color: #101828;
 					line-height: 50rpx;
 					font-weight: 400;

--
Gitblit v1.9.1