Replace loose equality (==) with strict equality (===) for ID comparisons
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -291,7 +291,7 @@ function progressWidth(value) {
|
|||||||
* @param {number} id case id
|
* @param {number} id case id
|
||||||
*/
|
*/
|
||||||
async function switchCaseData(id) {
|
async function switchCaseData(id) {
|
||||||
if (id == showTraceId.value) return;
|
if (id === showTraceId.value) return;
|
||||||
infinite404.value = null;
|
infinite404.value = null;
|
||||||
maxItems.value = false;
|
maxItems.value = false;
|
||||||
startNum.value = 0;
|
startNum.value = 0;
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ function progressWidth(value) {
|
|||||||
*/
|
*/
|
||||||
async function switchCaseData(id, count) {
|
async function switchCaseData(id, count) {
|
||||||
// Do nothing if clicking the same id
|
// Do nothing if clicking the same id
|
||||||
if (id == showTraceId.value) return;
|
if (id === showTraceId.value) return;
|
||||||
isLoading.value = true; // Always show loading screen
|
isLoading.value = true; // Always show loading screen
|
||||||
infinit404.value = null;
|
infinit404.value = null;
|
||||||
infinitMaxItems.value = false;
|
infinitMaxItems.value = false;
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ function progressWidth(value) {
|
|||||||
*/
|
*/
|
||||||
async function switchCaseData(id, count) {
|
async function switchCaseData(id, count) {
|
||||||
// Do nothing if clicking the same id
|
// Do nothing if clicking the same id
|
||||||
if (id == showTraceId.value) return;
|
if (id === showTraceId.value) return;
|
||||||
isLoading.value = true; // Always show loading screen
|
isLoading.value = true; // Always show loading screen
|
||||||
infinit404.value = null;
|
infinit404.value = null;
|
||||||
infinitMaxItems.value = false;
|
infinitMaxItems.value = false;
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ async function switchDataLayerType(type, option) {
|
|||||||
* @param {object} e - Object containing the trace id.
|
* @param {object} e - Object containing the trace id.
|
||||||
*/
|
*/
|
||||||
async function switchTraceId(e) {
|
async function switchTraceId(e) {
|
||||||
if (e.id == traceId.value) return;
|
if (e.id === traceId.value) return;
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
traceId.value = e.id;
|
traceId.value = e.id;
|
||||||
await allMapDataStore.getTraceDetail();
|
await allMapDataStore.getTraceDetail();
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ async function switchDataLayerType(type, option) {
|
|||||||
* @param {object} e - Object containing the trace id.
|
* @param {object} e - Object containing the trace id.
|
||||||
*/
|
*/
|
||||||
async function switchTraceId(e) {
|
async function switchTraceId(e) {
|
||||||
if (e.id == traceId.value) return;
|
if (e.id === traceId.value) return;
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
traceId.value = e.id;
|
traceId.value = e.id;
|
||||||
await allMapDataStore.getTraceDetail();
|
await allMapDataStore.getTraceDetail();
|
||||||
|
|||||||
Reference in New Issue
Block a user