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