+
+
+ {{ $t('commons.button.copy') }}
+
+
@@ -165,6 +170,7 @@
import { ref } from 'vue';
import CodemirrorPro from '@/components/codemirror-pro/index.vue';
import { routerToFileWithPath } from '@/utils/router';
+import { copyText } from '@/utils/util';
import i18n from '@/lang';
const visible = ref(false);
@@ -263,6 +269,10 @@ const handleJumpToFile = (path: string) => {
}
};
+const handleCopyRawJson = () => {
+ copyText(rawJson.value);
+};
+
defineExpose({
acceptParams,
});
diff --git a/frontend/src/views/container/network/detail/index.vue b/frontend/src/views/container/network/detail/index.vue
index 7d3df1c1bb2b..8950c46d6900 100644
--- a/frontend/src/views/container/network/detail/index.vue
+++ b/frontend/src/views/container/network/detail/index.vue
@@ -93,6 +93,11 @@