Explorar o código

修改上传图片为警告

丸子 hai 7 meses
pai
achega
5121526300

+ 1 - 0
src/components/ImageUpload/index.vue

@@ -13,6 +13,7 @@
       :disabled="isUploading"
       title="上传参考图"
     >
+    上传参考图
       <el-icon><Picture /></el-icon>
     </button>
 

+ 1 - 1
src/views/AIImageToImage.vue

@@ -429,7 +429,7 @@ const sendMessage = async() => {
     }
   } else {
     // 如果没有上传图片,显示提示信息
-    Message().error('请先上传图片!', true);
+    Message().warning('请先上传参考图!', true);
   }
   // 调用子组件的方法清除预览图
   imageUploadRef.value?.clearPreview();

+ 1 - 1
src/views/AIImageToVideo.vue

@@ -410,7 +410,7 @@ const sendMessage = async() => {
     }
   } else {
     // 如果没有上传图片,显示提示信息
-    Message().error('请先上传图片!', true);
+    Message().warning('请先上传参考图!', true);
   }
   // 调用子组件的方法清除预览图
   imageUploadRef.value?.clearPreview();