feat:更新dev代码
This commit is contained in:
@@ -348,8 +348,7 @@ function handleFileUploadMessage(payload, topic){
|
||||
try {
|
||||
const messageStr = payload.toString()
|
||||
const data = JSON.parse(messageStr)
|
||||
// emitter.emit('fileUploadStatus')
|
||||
console.log(data,'data文件转换完成,预览通知')
|
||||
// emitter.emit('fileUploadStatus')
|
||||
const userId = JSON.parse(sessionStorage.getItem('userData'))?.uid
|
||||
if(dialogFileVisible.value){
|
||||
dialogFileVisible.value = false
|
||||
@@ -422,7 +421,7 @@ function handlePdfMessage(payload, topic){
|
||||
case 'converting':
|
||||
break
|
||||
case 'completed':
|
||||
getConvertedFile(data.task_id)
|
||||
getConvertedFile(data.task_id,data.room_uid)
|
||||
break
|
||||
case 'failed':
|
||||
break
|
||||
@@ -436,12 +435,12 @@ function handlePdfMessage(payload, topic){
|
||||
}
|
||||
|
||||
// 获取转换后的文件
|
||||
const getConvertedFile = async (taskId) => {
|
||||
const getConvertedFile = async (taskId,roomId) => {
|
||||
try {
|
||||
if (!taskId) {
|
||||
throw new Error('任务ID不存在')
|
||||
}
|
||||
const fileRes = await getConvertStatusApi(taskId,props.roomId)
|
||||
const fileRes = await getConvertStatusApi(taskId,roomId)
|
||||
} catch (err) {
|
||||
console.error('获取转换文件失败:', err)
|
||||
handleError('获取转换文件失败', err)
|
||||
|
||||
Reference in New Issue
Block a user