Replace loose equality (==) with strict equality (===) for ID comparisons

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 18:48:28 +08:00
parent e5e7b8b7b6
commit 674afd769c
5 changed files with 5 additions and 5 deletions

View File

@@ -291,7 +291,7 @@ function progressWidth(value) {
* @param {number} id case id
*/
async function switchCaseData(id) {
if (id == showTraceId.value) return;
if (id === showTraceId.value) return;
infinite404.value = null;
maxItems.value = false;
startNum.value = 0;

View File

@@ -352,7 +352,7 @@ function progressWidth(value) {
*/
async function switchCaseData(id, count) {
// Do nothing if clicking the same id
if (id == showTraceId.value) return;
if (id === showTraceId.value) return;
isLoading.value = true; // Always show loading screen
infinit404.value = null;
infinitMaxItems.value = false;

View File

@@ -243,7 +243,7 @@ function progressWidth(value) {
*/
async function switchCaseData(id, count) {
// Do nothing if clicking the same id
if (id == showTraceId.value) return;
if (id === showTraceId.value) return;
isLoading.value = true; // Always show loading screen
infinit404.value = null;
infinitMaxItems.value = false;