Commit bc6a2d28 authored by Jeff nan's avatar Jeff nan

feat

parent ce17d53e
......@@ -319,10 +319,12 @@ new Vue({
}, t_name);
});
if (!data) {
window.air.hideAirClassLoading(t_name, data);
this.loading = false;
return;
}
if (data && data.data_type == 'AI_QUEUE') {
window.air.hideAirClassLoading(t_name, data);
// 说明是AI处理队列,需要实时查询进度
this.loading = false;
this.checkProcess();
......@@ -2413,12 +2415,13 @@ new Vue({
} else if (this.imageFiles.length > 0) {
uploadData.imageUrls = this.imageFiles.map(file => file.url);
}
console.log(uploadData);
window.courseware.setData(uploadData, () => {
this.loading = false;
const resp = await callServerMethod('goAiProcess', uploadData);
this.loading = false;
if (resp.msg == 'success') {
this.checkProcess();
}, t_name);
} else {
this.$message.error(resp.data);
}
},
getTimelineItemType(status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment