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 {