Discover: change sideBar allTrace api.

This commit is contained in:
chiayin
2023-03-27 14:21:11 +08:00
parent c98229f148
commit 6a50ae5f71

View File

@@ -80,11 +80,13 @@ export default defineStore('allMapDataStore', {
*/ */
async getAllTrace() { async getAllTrace() {
let logId = this.logId; 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 { try {
const response = await this.$axios.get(api); 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; if(this.httpStatus < 300) loading.isLoading = false;
} catch(error) { } catch(error) {