From c3ccabfc59431aea657379c72c2e09c8e1b27d18 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期五, 12 九月 2025 15:24:42 +0800
Subject: [PATCH] 图片回显

---
 laboratory/src/components/AiEditor/index.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/laboratory/src/components/AiEditor/index.vue b/laboratory/src/components/AiEditor/index.vue
index cf68171..373fafc 100644
--- a/laboratory/src/components/AiEditor/index.vue
+++ b/laboratory/src/components/AiEditor/index.vue
@@ -7,7 +7,7 @@
 <script>
 import { AiEditor } from "aieditor";
 import 'aieditor/dist/style.css'
-// import { customUploadRequest, getFullUrl } from '@/utils/utils'
+import { getAllocateIp } from '@/utils/utils'
 import apiConfig from '@/utils/baseurl'
 
 export default {
@@ -123,7 +123,7 @@
                   let data = {
                     "errorCode": 0,
                     "data": {
-                      "src": apiConfig.showImgUrl + json.msg,
+                      "src": getAllocateIp() + json.msg,
                       "alt": "图片 alt"
                     }
                   }
@@ -153,7 +153,7 @@
                   let data = {
                     "errorCode": 0,
                     "data": {
-                      "src": apiConfig.showImgUrl + json.msg,
+                      "src": getAllocateIp() + json.msg,
                       "poster": "http://your-domain.com/poster.jpg"
                     }
                   }
@@ -190,7 +190,7 @@
                   let data = {
                     "errorCode": 0,
                     "data": {
-                      "href": apiConfig.showImgUrl + json.msg,
+                      "href": getAllocateIp() + json.msg,
                       "fileName": file.name
                     }
                   }

--
Gitblit v1.7.1