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

@@ -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();