diff --git a/src/graphql/fragments/log.ts b/src/graphql/fragments/log.ts
index 78738d8e..18e814ec 100644
--- a/src/graphql/fragments/log.ts
+++ b/src/graphql/fragments/log.ts
@@ -54,7 +54,6 @@ export const QueryServiceLogs = {
value
}
}
- total
}`,
};
diff --git a/src/store/modules/log.ts b/src/store/modules/log.ts
index 9665f117..ce1674d1 100644
--- a/src/store/modules/log.ts
+++ b/src/store/modules/log.ts
@@ -31,7 +31,6 @@ interface LogState {
selectorStore: any;
supportQueryLogsByKeywords: boolean;
logs: any[];
- logsTotal: number;
loadLogs: boolean;
}
@@ -48,7 +47,6 @@ export const logStore = defineStore({
supportQueryLogsByKeywords: true,
selectorStore: useSelectorStore(),
logs: [],
- logsTotal: 0,
loadLogs: false,
}),
actions: {
@@ -131,7 +129,6 @@ export const logStore = defineStore({
}
this.logs = res.data.data.queryLogs.logs;
- this.logsTotal = res.data.data.queryLogs.total;
return res.data;
},
async getBrowserLogs() {
@@ -145,7 +142,6 @@ export const logStore = defineStore({
return res.data;
}
this.logs = res.data.data.queryBrowserErrorLogs.logs;
- this.logsTotal = res.data.data.queryBrowserErrorLogs.total;
return res.data;
},
async getLogTagKeys() {
diff --git a/src/store/modules/trace.ts b/src/store/modules/trace.ts
index 50f9e166..4e337351 100644
--- a/src/store/modules/trace.ts
+++ b/src/store/modules/trace.ts
@@ -32,7 +32,6 @@ interface TraceState {
currentTrace: Trace | any;
conditions: any;
traceSpanLogs: any[];
- traceSpanLogsTotal: number;
selectorStore: any;
}
@@ -52,7 +51,6 @@ export const traceStore = defineStore({
paging: { pageNum: 1, pageSize: 20 },
},
traceSpanLogs: [],
- traceSpanLogsTotal: 0,
selectorStore: useSelectorStore(),
}),
actions: {
@@ -144,11 +142,9 @@ export const traceStore = defineStore({
.params(params);
if (res.data.errors) {
this.traceSpanLogs = [];
- this.traceSpanLogsTotal = 0;
return res.data;
}
this.traceSpanLogs = res.data.data.queryLogs.logs || [];
- this.traceSpanLogsTotal = res.data.data.queryLogs.total;
return res.data;
},
async getTagKeys() {
diff --git a/src/views/dashboard/related/components/LogTable/Index.vue b/src/views/dashboard/related/components/LogTable/Index.vue
index b507b0be..4d4f75e7 100644
--- a/src/views/dashboard/related/components/LogTable/Index.vue
+++ b/src/views/dashboard/related/components/LogTable/Index.vue
@@ -94,6 +94,8 @@ function setCurrentLog(log: any) {
font-size: 12px;
height: 100%;
border-bottom: 1px solid #eee;
+ width: 100%;
+ overflow: auto;
}
.log-header {
diff --git a/src/views/dashboard/related/log/List.vue b/src/views/dashboard/related/log/List.vue
index 455158c1..583b30a1 100644
--- a/src/views/dashboard/related/log/List.vue
+++ b/src/views/dashboard/related/log/List.vue
@@ -26,8 +26,10 @@ limitations under the License. -->
@@ -35,7 +37,7 @@ limitations under the License. -->