fix: 注释掉标注页面加载图像获取无效元素id的部分
This commit is contained in:
@@ -469,10 +469,10 @@
|
|||||||
|
|
||||||
currentImageData = image;
|
currentImageData = image;
|
||||||
|
|
||||||
// 显示图像信息
|
// // 显示图像信息
|
||||||
document.getElementById('image-id').textContent = image.id;
|
// document.getElementById('image-id').textContent = image.id;
|
||||||
document.getElementById('image-timestamp').textContent = new Date(image.timestamp * 1000).toISOString();
|
// document.getElementById('image-timestamp').textContent = new Date(image.timestamp * 1000).toISOString();
|
||||||
document.getElementById('image-comment').textContent = image.comment || '无';
|
// document.getElementById('image-comment').textContent = image.comment || '无';
|
||||||
|
|
||||||
// 根据 side 参数决定加载哪一侧的图像
|
// 根据 side 参数决定加载哪一侧的图像
|
||||||
const imagePath = side === 'left'
|
const imagePath = side === 'left'
|
||||||
@@ -483,8 +483,8 @@
|
|||||||
? `左摄像头图像:${image.left_filename}`
|
? `左摄像头图像:${image.left_filename}`
|
||||||
: `右摄像头图像:${image.right_filename}`;
|
: `右摄像头图像:${image.right_filename}`;
|
||||||
|
|
||||||
// 更新图像信息显示
|
// // 更新图像信息显示
|
||||||
document.querySelector('.info-panel h3').textContent = imageInfo;
|
// document.querySelector('.info-panel h3').textContent = imageInfo;
|
||||||
|
|
||||||
// 加载图像到画布
|
// 加载图像到画布
|
||||||
fabric.Image.fromURL(imagePath, function (img) {
|
fabric.Image.fromURL(imagePath, function (img) {
|
||||||
|
|||||||
Reference in New Issue
Block a user