修复报错
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
朱潮 2025-11-10 00:00:05 +08:00
parent ec6e699390
commit 356856def4
2 changed files with 0 additions and 6 deletions

View File

@ -1248,8 +1248,6 @@ class DocumentSerializers(serializers.Serializer):
# 更新音视频文档的状态 # 更新音视频文档的状态
if hasattr(doc, 'meta') and doc.meta and doc.meta.get('stt_model_id'): if hasattr(doc, 'meta') and doc.meta and doc.meta.get('stt_model_id'):
try: try:
from common.event import ListenerManagement
from knowledge.models import TaskType, State
# 更新文档状态为成功 # 更新文档状态为成功
ListenerManagement.update_status( ListenerManagement.update_status(
QuerySet(Document).filter(id=doc.id), QuerySet(Document).filter(id=doc.id),
@ -1393,9 +1391,6 @@ class DocumentSerializers(serializers.Serializer):
document_result_list[idx]['is_media_learning'] = True document_result_list[idx]['is_media_learning'] = True
# 设置排队状态并触发音视频异步任务 # 设置排队状态并触发音视频异步任务
try: try:
from common.event import ListenerManagement
from knowledge.models import TaskType, State
# 更新文档状态为排队中 # 更新文档状态为排队中
ListenerManagement.update_status( ListenerManagement.update_status(
QuerySet(Document).filter(id=document_id), QuerySet(Document).filter(id=document_id),

View File

@ -165,7 +165,6 @@ function clearStore() {
}) })
} }
function submit() { function submit() {
alert('Submit function called! documentsType=' + documentsType.value)
loading.value = true loading.value = true
const documents = [] as any const documents = [] as any
console.log('Submit called, documentsType:', documentsType.value) console.log('Submit called, documentsType:', documentsType.value)