mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
fix copy trace id
This commit is contained in:
parent
b34c0b0c72
commit
0ab40f22c6
@ -64,11 +64,7 @@ limitations under the License. -->
|
|||||||
<div class="mb-5 blue sm">
|
<div class="mb-5 blue sm">
|
||||||
<Selector
|
<Selector
|
||||||
size="small"
|
size="small"
|
||||||
:value="
|
:value="traceId"
|
||||||
traceStore.currentTrace.traceIds &&
|
|
||||||
traceStore.currentTrace.traceIds[0] &&
|
|
||||||
traceStore.currentTrace.traceIds[0].value
|
|
||||||
"
|
|
||||||
:options="traceStore.currentTrace.traceIds"
|
:options="traceStore.currentTrace.traceIds"
|
||||||
@change="changeTraceId"
|
@change="changeTraceId"
|
||||||
class="trace-detail-ids"
|
class="trace-detail-ids"
|
||||||
@ -169,7 +165,11 @@ export default defineComponent({
|
|||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const traceStore = useTraceStore();
|
const traceStore = useTraceStore();
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
const traceId = ref<string>("");
|
const traceId = ref<string>(
|
||||||
|
traceStore.currentTrace.traceIds &&
|
||||||
|
traceStore.currentTrace.traceIds[0] &&
|
||||||
|
traceStore.currentTrace.traceIds[0].value
|
||||||
|
);
|
||||||
const displayMode = ref<string>("List");
|
const displayMode = ref<string>("List");
|
||||||
const pageNum = ref<number>(1);
|
const pageNum = ref<number>(1);
|
||||||
const pageSize = 10;
|
const pageSize = 10;
|
||||||
@ -182,14 +182,8 @@ export default defineComponent({
|
|||||||
dayjs(date).format(pattern);
|
dayjs(date).format(pattern);
|
||||||
const showTraceLogs = ref<boolean>(false);
|
const showTraceLogs = ref<boolean>(false);
|
||||||
|
|
||||||
function handleClick(ids: string[] | any) {
|
function handleClick() {
|
||||||
let copyValue = null;
|
copy(traceId.value);
|
||||||
if (ids.length === 1) {
|
|
||||||
copyValue = ids[0];
|
|
||||||
} else {
|
|
||||||
copyValue = ids.join(",");
|
|
||||||
}
|
|
||||||
copy(copyValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function changeTraceId(opt: Option[] | any) {
|
async function changeTraceId(opt: Option[] | any) {
|
||||||
@ -235,6 +229,7 @@ export default defineComponent({
|
|||||||
pageNum,
|
pageNum,
|
||||||
loading,
|
loading,
|
||||||
total,
|
total,
|
||||||
|
traceId,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user