|
|
@@ -74,6 +74,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, onMounted } from 'vue'
|
|
|
+import { CreatePainting,CreatePaintingGetMy} from '@/api/questions.js'
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
import {
|
|
|
Document,
|
|
|
@@ -90,6 +91,19 @@ const goBack = () => {
|
|
|
const router = useRouter()
|
|
|
const route = useRoute()
|
|
|
|
|
|
+// AI生成图片
|
|
|
+CreatePainting({
|
|
|
+ modelId: 56,
|
|
|
+ prompt:''
|
|
|
+}).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+})
|
|
|
+
|
|
|
+// 获取绘图记录
|
|
|
+// CreatePaintingGetMy().then(res=>{
|
|
|
+// console.log(res);
|
|
|
+// })
|
|
|
+
|
|
|
// 消息列表和输入内容的响应式变量
|
|
|
const messages = ref([])
|
|
|
|