From 9097369b0cd95adb88a1a0defffdc35109b931dc Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 20 Jan 2026 14:58:37 +0000 Subject: [PATCH] =?UTF-8?q?fix(ai-assistant):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E8=B0=83=E7=94=A8=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=96=B9=E6=B3=95=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 $A.previewFile 替换为 this.$store.dispatch("previewImage"), 解决 TypeError: $A.previewFile is not a function 错误。 Co-Authored-By: Claude Opus 4.5 --- resources/assets/js/components/AIAssistant/prompt-image.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/assets/js/components/AIAssistant/prompt-image.vue b/resources/assets/js/components/AIAssistant/prompt-image.vue index aaf7ab227..021c4555e 100644 --- a/resources/assets/js/components/AIAssistant/prompt-image.vue +++ b/resources/assets/js/components/AIAssistant/prompt-image.vue @@ -42,11 +42,7 @@ export default { }, showPreview() { if (this.imageUrl) { - $A.previewFile({ - type: 'image', - url: this.imageUrl, - name: `image_${this.imageId}`, - }); + this.$store.dispatch("previewImage", this.imageUrl); } }, },