From 6a50ae5f715a7cbd33089a42cae1976545a3fcb9 Mon Sep 17 00:00:00 2001 From: chiayin Date: Mon, 27 Mar 2023 14:21:11 +0800 Subject: [PATCH] Discover: change sideBar allTrace api. --- src/stores/allMapData.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stores/allMapData.js b/src/stores/allMapData.js index b3df85f..b5bbbf9 100644 --- a/src/stores/allMapData.js +++ b/src/stores/allMapData.js @@ -80,11 +80,13 @@ export default defineStore('allMapDataStore', { */ async getAllTrace() { let logId = this.logId; - const api = `/api/filters/params?log_id=${logId}`; + // const api = `/api/filters/params?log_id=${logId}`; + const api = `/api/logs/${logId}/traces`; try { const response = await this.$axios.get(api); - this.allTrace = response.data.traces; + console.log(response); + this.allTrace = response.data; if(this.httpStatus < 300) loading.isLoading = false; } catch(error) {