From 92a9ee23cccb05ce17d9ad15f422a90e09ab955d Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Tue, 21 Oct 2025 18:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=83=8F=E8=AF=84=E4=BC=B0=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- src/components/ImagePreview/index.vue | 8 +++++--- src/router/index.js | 2 +- .../imageCaptioning/image-captioning-library/index.vue | 3 ++- .../image-captioning/components/ImageResults.vue | 7 ++++--- .../image-captioning/components/ImageResultsUn.vue | 3 ++- .../imageCaptioning/image-evaluate-library/index.vue | 5 +++-- src/views/imageCaptioning/image-evaluate/index.vue | 2 ++ vue.config.js | 4 ++-- 10 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.env.development b/.env.development index 9cbf1ce..e9e11b5 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' VUE_APP_ENV = 'development' # 图像评估与自动标注系统/开发环境 -VUE_APP_BASE_API = '/image-api' +VUE_APP_BASE_API = '/caption' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production b/.env.production index 40ef226..c2b9399 100644 --- a/.env.production +++ b/.env.production @@ -6,4 +6,4 @@ ENV = 'production' VUE_APP_ENV = 'production' # 图像评估与自动标注系统/生产环境 -VUE_APP_BASE_API = '/image-api' +VUE_APP_BASE_API = '/caption' diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue index 656db51..085d7d9 100644 --- a/src/components/ImagePreview/index.vue +++ b/src/components/ImagePreview/index.vue @@ -2,7 +2,7 @@
@@ -14,7 +14,7 @@ :src="src1" v-else :preview-src-list="realSrcList" - :style="`width:${realWidth};height:${realHeight};border-radius: ${borderRadius}px;`" + :style="`width:${realWidth};height:${realHeight};border-radius: ${borderRadius}px;object-fit: contain;`" >
@@ -101,10 +101,12 @@ export default {