From 3eec131ae04d44f7b1b58f8999315cadafc0b635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 6 Mar 2026 09:15:35 +0800 Subject: [PATCH] Fix typos: createfilterId, sidevarFilterRef, selecteName, namber Co-Authored-By: Claude Opus 4.6 --- src/stores/allMapData.js | 20 ++++++++++---------- src/views/Compare/MapCompare.vue | 4 ++-- src/views/Discover/Map/Map.vue | 4 ++-- src/views/Files/Files.vue | 20 ++++++++++---------- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/stores/allMapData.js b/src/stores/allMapData.js index b7559f1..063b49f 100644 --- a/src/stores/allMapData.js +++ b/src/stores/allMapData.js @@ -127,12 +127,12 @@ export default defineStore('allMapDataStore', { async getAllMapData() { const logId = this.logId; const tempFilterId = this.tempFilterId; - const createfilterId = this.createFilterId + const createFilterId = this.createFilterId let api = ''; // 先判斷暫存 再判斷 filter 最後 log if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/discover`; - else if(createfilterId!= null) api = `/api/filters/${createfilterId}/discover`; + else if(createFilterId!= null) api = `/api/filters/${createFilterId}/discover`; else api = `/api/logs/${logId}/discover`; try { @@ -151,14 +151,14 @@ export default defineStore('allMapDataStore', { async getAllTrace() { const logId = this.logId; const tempFilterId = this.tempFilterId; - const createfilterId = this.createFilterId; + const createFilterId = this.createFilterId; const baseLogId = this.baseLogId; const baseApi = `/api/logs/${baseLogId}/traces`; let api = ''; // 先判斷暫存 再判斷 filter 最後 log if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/traces`; - else if(createfilterId!= null) api = `/api/filters/${createfilterId}/traces`; + else if(createFilterId!= null) api = `/api/filters/${createFilterId}/traces`; else api = `/api/logs/${logId}/traces`; try { @@ -180,13 +180,13 @@ export default defineStore('allMapDataStore', { const logId = this.logId; const traceId = this.traceId; const tempFilterId = this.tempFilterId; - const createfilterId = this.createFilterId; + const createFilterId = this.createFilterId; const start = this.infiniteStart; let api = ''; // 先判斷暫存 再判斷 filter 最後 log if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/traces/${traceId}?start=${start}&page_size=20`; - else if(createfilterId!= null) api = `/api/filters/${createfilterId}/traces/${traceId}?start=${start}&page_size=20`; + else if(createFilterId!= null) api = `/api/filters/${createFilterId}/traces/${traceId}?start=${start}&page_size=20`; else api = `/api/logs/${logId}/traces/${traceId}?start=${start}&page_size=20`; try { @@ -336,12 +336,12 @@ export default defineStore('allMapDataStore', { }, /** * Get Filter Detail - * @param {namber} createfilterId filter type ID + * @param {number} createFilterId filter type ID */ - async fetchFunnel(createfilterId) { - const api = `/api/filters/${createfilterId}`; + async fetchFunnel(createFilterId) { + const api = `/api/filters/${createFilterId}`; - if(createfilterId){ + if(createFilterId){ try { const response = await this.$axios.get(api); this.temporaryData = response.data.rules; diff --git a/src/views/Compare/MapCompare.vue b/src/views/Compare/MapCompare.vue index d60d02b..a11c5dd 100644 --- a/src/views/Compare/MapCompare.vue +++ b/src/views/Compare/MapCompare.vue @@ -49,7 +49,7 @@ + @submit-all="createCy(mapType)" @switch-Trace-Id="switchTraceId" ref="sidebarFilterRef">