mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-03 07:25:24 +00:00
copy trace Id works
This commit is contained in:
parent
ca83e55315
commit
4b4970f214
@ -81,12 +81,27 @@
|
||||
@change="changeTraceId"
|
||||
class="trace-detail-ids"
|
||||
/>
|
||||
<Icon
|
||||
<el-tooltip
|
||||
class="box-item"
|
||||
effect="dark"
|
||||
content="Copy Id"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<el-button
|
||||
size="small"
|
||||
class="mr-10 filter-btn"
|
||||
type="primary"
|
||||
@click="handleClick(traceStore.currentTrace.traceIds)"
|
||||
>
|
||||
<Icon iconSize="sm" iconName="review-list" />
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
<!-- <Icon
|
||||
size="sm"
|
||||
class="icon grey link-hover cp ml-5"
|
||||
iconName="review-list"
|
||||
@click="handleClick"
|
||||
/>
|
||||
/> -->
|
||||
</div>
|
||||
<div class="flex-h item">
|
||||
<div>
|
||||
@ -191,11 +206,13 @@ export default defineComponent({
|
||||
traceStore.setCurrentView("traceList");
|
||||
}
|
||||
function handleClick(ids: string[] | any) {
|
||||
|
||||
let copyValue = null;
|
||||
if (ids.length === 1) {
|
||||
copyValue = ids[0];
|
||||
console.log(ids)
|
||||
copyValue = ids[0].value;
|
||||
} else {
|
||||
copyValue = ids.join(",");
|
||||
copyValue = ids.map((trace: any) => trace.value).join(",");
|
||||
}
|
||||
copy(copyValue);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user