Skip to content

Commit

Permalink
fix: camera index
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Nov 22, 2024
1 parent f9397bc commit 4ad7937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camera/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<form>
index(深度摄像头填 -1)<br>
<select id="index"></select>
<input type="number" id="index">
<br>
width<br>
<input type="number" id="width">
Expand Down Expand Up @@ -124,6 +124,7 @@
if (options.length == 0) {
document.getElementById("index").outerHTML = `<input type="number" id="index">`;
} else {
document.getElementById("index").outerHTML = `<select id="index"></select>`;
document.getElementById("index").innerHTML = options;
}
}
Expand Down

0 comments on commit 4ad7937

Please sign in to comment.