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;

View File

@@ -364,7 +364,7 @@ async function switchDataLayerType(type, option) {
* @param {object} e - Object containing the trace id.
*/
async function switchTraceId(e) {
if (e.id == traceId.value) return;
if (e.id === traceId.value) return;
isLoading.value = true;
traceId.value = e.id;
await allMapDataStore.getTraceDetail();

View File

@@ -360,7 +360,7 @@ async function switchDataLayerType(type, option) {
* @param {object} e - Object containing the trace id.
*/
async function switchTraceId(e) {
if (e.id == traceId.value) return;
if (e.id === traceId.value) return;
isLoading.value = true;
traceId.value = e.id;
await allMapDataStore.getTraceDetail();