解决资源文件无法监听已读的问题
Some checks are pending
Check / lint (push) Waiting to run
Check / typecheck (push) Waiting to run
Check / build (build, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build, 18.x, windows-latest) (push) Waiting to run
Check / build (build:app, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:app, 18.x, windows-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Waiting to run

This commit is contained in:
wangyifeng 2025-04-21 11:06:48 +08:00
parent 66828a254c
commit f76198b674

View File

@ -1566,6 +1566,16 @@ watch(
}
})
}
} else if (lastIndex === 0 && newValue[0].file_num) {
// id
console.error('预创建资源文件==================')
const msg = newValue[0]
nextTick(() => {
const element = document.getElementById(`zp-id-${msg.msg_id}`)
if (element) {
messageRecordElementRefs.value.unshift(element)
}
})
}
}
}