|
@@ -175,8 +175,6 @@ import ImageUpload from '@/components/ImageUpload/index.vue';
|
|
|
import { getModelIdByType } from '@/api/teachers.js'
|
|
import { getModelIdByType } from '@/api/teachers.js'
|
|
|
import { ModelTypeEnum } from '@/api/teachers.js'
|
|
import { ModelTypeEnum } from '@/api/teachers.js'
|
|
|
|
|
|
|
|
-// 图片
|
|
|
|
|
-import list_img03 from "@/assets/programming/list_img03.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 存储上传的图片
|
|
// 存储上传的图片
|
|
@@ -186,7 +184,6 @@ const imageUploadRef = ref(null);
|
|
|
|
|
|
|
|
// 当前选中的风格
|
|
// 当前选中的风格
|
|
|
const selectedStyle = ref('');
|
|
const selectedStyle = ref('');
|
|
|
-// 已移除dropdownVisible,使用el-select的v-model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -339,18 +336,7 @@ import {
|
|
|
} from '@element-plus/icons-vue'
|
|
} from '@element-plus/icons-vue'
|
|
|
|
|
|
|
|
|
|
|
|
|
-const imageAllList = ref([
|
|
|
|
|
- {
|
|
|
|
|
- type: 'user',
|
|
|
|
|
- content: '请帮我生成一张类似的图片',
|
|
|
|
|
- imageUrl: list_img03
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- type: 'ai',
|
|
|
|
|
- content: '已为您生成图片:',
|
|
|
|
|
- imageList: [list_img03]
|
|
|
|
|
- }
|
|
|
|
|
-]) // 对话的消息列表
|
|
|
|
|
|
|
+const imageAllList = ref([]) // 对话的消息列表
|
|
|
// 图片轮询相关的参数(正在生成中的)
|
|
// 图片轮询相关的参数(正在生成中的)
|
|
|
const inProgressImageMap = ref({}) // 监听的 image 映射,一般是生成中(需要轮询),key 为 image 编号,value 为 image
|
|
const inProgressImageMap = ref({}) // 监听的 image 映射,一般是生成中(需要轮询),key 为 image 编号,value 为 image
|
|
|
const inProgressTimer = ref() // 生成中的 image 定时器,轮询生成进展
|
|
const inProgressTimer = ref() // 生成中的 image 定时器,轮询生成进展
|