ソースを参照

style(photography): 更新图像显示样式为contain模式

- 将el-image组件的fit属性从cover改为contain
- 确保图像完整显示而不被裁剪
panqiuyao 1 日 前
コミット
07f3f3d88e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      frontend/src/views/Photography/shot.vue

+ 1 - 1
frontend/src/views/Photography/shot.vue

@@ -55,7 +55,7 @@
       </div>
 
       <div class="last-photo" v-show="showlastPhoto && (lastPhoto as any)?.file_path" v-key="(lastPhoto as any)?.file_path">
-        <el-image  :src="getFilePath((lastPhoto as any)?.file_path || '')"  fit="cover" ></el-image>
+        <el-image  :src="getFilePath((lastPhoto as any)?.file_path || '')"  fit="contain" ></el-image>
       </div>
 
       <div class="history-section flex-col koutu-section">