|
|
@@ -255,6 +255,11 @@ const sendMessage = async() => {
|
|
|
loading: true
|
|
|
})
|
|
|
|
|
|
+ // 调用子组件的方法清除预览图
|
|
|
+ imageUploadRef.value?.clearPreview();
|
|
|
+ // 清空上传的图片路径
|
|
|
+ uploadedImage.value = '';
|
|
|
+
|
|
|
// 通过emit事件通知父组件保存进度
|
|
|
emits('saveProgress', "aiCount", 1)
|
|
|
if (props.isCourse){
|
|
|
@@ -313,8 +318,7 @@ const sendMessage = async() => {
|
|
|
// 如果没有上传图片,显示提示信息
|
|
|
Message().error('请先上传参考图!', true);
|
|
|
}
|
|
|
- // 调用子组件的方法清除预览图
|
|
|
- imageUploadRef.value?.clearPreview();
|
|
|
+
|
|
|
};
|
|
|
|
|
|
|