Discover: change sideBar allTrace api.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user