feat: chat chrawing function is refactored

This commit is contained in:
RockYang
2023-09-13 06:57:25 +08:00
parent fa341bab30
commit 1d3acc8ed3
12 changed files with 121 additions and 279 deletions

View File

@@ -70,6 +70,8 @@ import {getSessionId} from "@/store/session";
const props = defineProps({
content: Object,
icon: String,
chatId: String,
roleId: Number,
createdAt: String
});
@@ -110,6 +112,9 @@ const send = (url, index) => {
message_hash: data.value?.["image"]?.hash,
session_id: getSessionId(),
prompt: data.value?.["prompt"],
chat_id: props.chatId,
role_id: props.roleId,
icon: props.icon,
}).then(() => {
ElMessage.success("任务推送成功,请耐心等待任务执行...")
loading.value = false

View File

@@ -44,7 +44,7 @@ export default defineComponent({
default: 0,
},
model: {
type: Number,
type: String,
default: '',
},
},