|
|
@@ -91,7 +91,7 @@
|
|
|
<video
|
|
|
v-for="(video, index) in item.imageList"
|
|
|
:key="index"
|
|
|
- style="width: 30%; max-width: 600px; height: auto; margin: 10px;"
|
|
|
+ style="width: 60%; max-width: 600px; height: auto; margin: 10px;border-radius: 2%;"
|
|
|
:src="video"
|
|
|
controls
|
|
|
playsinline
|
|
|
@@ -344,7 +344,7 @@ const stopStream = async () => {
|
|
|
|
|
|
// 发送消息函数
|
|
|
const sendMessage = async() => {
|
|
|
- if (inputMessage.value.trim() || uploadedImage.value) {
|
|
|
+ if (uploadedImage.value) {
|
|
|
// 创建 AbortController 实例,以便中止请求
|
|
|
conversationInAbortController.value = new AbortController();
|
|
|
// 标记对话进行中
|
|
|
@@ -408,6 +408,9 @@ const sendMessage = async() => {
|
|
|
console.error('生成视频失败:', error);
|
|
|
conversationInProgress.value = false;
|
|
|
}
|
|
|
+ } else {
|
|
|
+ // 如果没有上传图片,显示提示信息
|
|
|
+ Message().error('请先上传图片!', true);
|
|
|
}
|
|
|
// 调用子组件的方法清除预览图
|
|
|
imageUploadRef.value?.clearPreview();
|