From fbd1c829a16d15cda8f9d8adb7ac6aec96c84230 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 17 Apr 2026 05:12:16 +0000 Subject: [PATCH] =?UTF-8?q?fix(ai):=20AI=E5=8A=A9=E6=89=8B=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8E=8B=E7=BC=A9=E9=98=88=E5=80=BC=E4=BB=8E1024?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E5=88=B01568=EF=BC=8C=E5=87=8F=E5=B0=91?= =?UTF-8?q?=E9=95=BF=E5=9B=BE=E6=A8=A1=E7=B3=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- resources/assets/js/components/AIAssistant/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/assets/js/components/AIAssistant/index.vue b/resources/assets/js/components/AIAssistant/index.vue index ac46b5b49..b6fe6dc12 100644 --- a/resources/assets/js/components/AIAssistant/index.vue +++ b/resources/assets/js/components/AIAssistant/index.vue @@ -1927,9 +1927,8 @@ export default { * @returns {Promise} - Base64 data URL (image/jpeg) */ async compressImageForAI(file) { - // File 转 dataUrl 后压缩到 1024px,强制质量压缩 const dataUrl = await this.fileToDataUrl(file); - return this.resizeDataUrl(dataUrl, 1024, true); + return this.resizeDataUrl(dataUrl, 1568, true); }, /**